CVE-2016-10074
Swift Mailer mail transport Command Injection
Reported by mitre · Published December 30, 2016
swiftmailer/swiftmailer is fixed in 5.4.5 (Packagist)
The mail transport (aka Swift_Transport_MailTransport) in Swift Mailer before 5.4.5 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code via a \" (backslash double quote) in a crafted e-mail address in the (1) From, (2) ReturnPath, or (3) Sender header.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| swiftmailer/swiftmailer | Packagist | 5.4.5 |
| libphp-swiftmailer | Ubuntu:20.04:LTS | 5.4.2-1.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| swiftmailer | swiftmailer | 0 |
| n/a | n/a | * |
Timeline
- Dec 29, 2016 PoC Published (2 in total, the first dated here)
- Dec 30, 2016 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (2 in total, the first dated here)
- Oct 10, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-10074
vulnetix vdb fixes CVE-2016-10074
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-10074/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 42221 exploitx_refsource_EXPLOIT-DB
- x_refsource_MISC
- 95140 vdb-entryx_refsource_BID
- x_refsource_MISC
- 20161229 SwiftMailer <= 5.4.5-DEV Remote Code Execution (CVE-2016-10074) mailing-listx_refsource_FULLDISC
- 40972 exploitx_refsource_EXPLOIT-DB
- 40986 exploitx_refsource_EXPLOIT-DB
- DSA-3769 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2016-10074 advisory
- https://github.com/advisories/GHSA-pr44-4jfr-286m advisory
- https://github.com/FriendsOfPHP/security-advisories/blob/master/swiftmailer/swiftmailer/CVE-2016-10074.yaml url
- https://www.exploit-db.com/exploits/40972 url
- https://www.exploit-db.com/exploits/40986 url
- https://www.exploit-db.com/exploits/42221 url