CVE-2016-10074 Swift Mailer mail transport Command Injection
Remote attackers can execute arbitrary code by injecting commands via crafted email addresses in Swift Mailer headers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-10074?
CVE-2016-10074 is a critical command injection vulnerability in n/a, published on 30 Dec 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-77
Which versions are affected by CVE-2016-10074?
2 open source packages ship an affected version, including swiftmailer/swiftmailer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
swiftmailer/swiftmailer Packagist | All versions | 5.4.5 |
swiftmailer/swiftmailer Packagist | All versions | 5.4.5 |
Products include Swiftmailer Swiftmailer.
How do I fix CVE-2016-10074?
Upgrade swiftmailer/swiftmailer to 5.4.5 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2016-10074 being exploited?
There is no known exploitation of CVE-2016-10074 in the wild and no public exploit code.
Public exploit code: 3 Exploit-DB entries.
Sources
Also known as DEBIAN-CVE-2016-10074, DLA-792-1, DSA-3769-1, GHSA-pr44-4jfr-286m, UBUNTU-CVE-2016-10074.