GHSA-738m-f33v-qc2r

Suggest an improvement
Source
https://github.com/advisories/GHSA-738m-f33v-qc2r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/03/GHSA-738m-f33v-qc2r/GHSA-738m-f33v-qc2r.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-738m-f33v-qc2r
Aliases
Published
2020-03-05T22:09:19Z
Modified
2024-12-02T05:46:53.337709Z
Summary
SMTP Injection in PHPMailer
Details

Impact

Attackers could inject arbitrary SMTP commands via by exploiting the fact that valid email addresses may contain line breaks, which are not handled correctly in some contexts.

Patches

Fixed in 5.2.14 in this commit.

Workarounds

Manually strip line breaks from email addresses before passing them to PHPMailer.

References

https://nvd.nist.gov/vuln/detail/CVE-2015-8476

For more information

If you have any questions or comments about this advisory: * Open a private issue in the PHPMailer project

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "github_reviewed_at": "2020-03-05T21:57:18Z"
}
References

Affected packages

Packagist / phpmailer/phpmailer

Package

Name
phpmailer/phpmailer
Purl
pkg:composer/phpmailer/phpmailer

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.0.0
Fixed
5.2.14

Affected versions

v5.*

v5.2.2
v5.2.4
v5.2.5
v5.2.6
v5.2.7
v5.2.8
v5.2.9
v5.2.10
v5.2.11
v5.2.12
v5.2.13