Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2016-10074 EUVD-2022-4814GHSA-pr44-4jfr-286m

Swift Mailer mail transport Command Injection

Published Dec 30, 2016 · Updated Aug 6, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libphp-swiftmailer 5.4.2-1.1 —
Debian 12 libphp-swiftmailer 5.4.2-1.1 —
Debian 8 libphp-swiftmailer 5.2.2-1+deb8u1 DSA-3769-1
Debian 7 libphp-swiftmailer 4.1.5-1+deb7u1 DLA-792-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libphp-swiftmailer 5.4.2-1.1 —
Ubuntu 18.04 LTS libphp-swiftmailer 5.4.2-1.1 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS libphp-swiftmailer 5.4.1-1ubuntu1+esm1 USN-8986-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist swiftmailer/swiftmailer < 5.4.5 5.4.5 GHSA-pr44-4jfr-286m

Advisories 3

References