GHSA-4qpj-gxxg-jqg4
Swiftmailer Sendmail transport arbitrary shell execution
GHSA-4qpj-gxxg-jqg4 is a vulnerability with no CVSS score yet in swiftmailer/swiftmailer, published May 29, 2024. No source lists public exploit code. Fixed in swiftmailer/swiftmailer 5.2.1.
- Severity
- UnratedNo CVSS score yet
- Exploit chance
- UnscoredNo EPSS score yet
- Exploitation
- None knownNot on CISA’s or ENISA’s lists
- Fixed in
5.2.1swiftmailer/swiftmailer +1 more
Description
Prior to 5.2.1, the sendmail transport (Swift_Transport_SendmailTransport) was vulnerable to an arbitrary shell execution if the "From" header came from a non-trusted source and no "Return-Path" is configured. This has been fixed in 5.2.1. If you are using sendmail as a transport, you are encouraged to upgrade as soon as possible.
Affected packages
| Package | Affected | Fixed |
|---|---|---|
swiftmailer/swiftmailerPackagist | 4.0.0 up to 5.2.1 | 5.2.1 |
swiftmailer/swiftmailerPackagist | 4.0.0 up to 5.2.1, plus listed versions 4.1.34.1.44.1.54.1.64.1.7 Show 12 moreShow lessv4.1.8v4.2.0v4.2.1v4.2.2v4.3.0v4.3.1v5.0.0v5.0.1v5.0.2v5.0.3v5.1.0v5.2.0 | 5.2.1 |
What each source reports
GitHub AdvisoriesNo score
Swiftmailer Sendmail transport arbitrary shell execution
Prior to 5.2.1, the sendmail transport (Swift_Transport_SendmailTransport) was vulnerable to an arbitrary shell execution if the "From" header came from a non-trusted source and no "Return-Path" is configured. This has been fixed in 5.2.1. If you are using sendmail as a transport, you are encouraged to upgrade as soon as possible.
- Record
GHSA-4qpj-gxxg-jqg4- Updated
- 2026-11-02
OSVNo score
Swiftmailer Sendmail transport arbitrary shell execution
Prior to 5.2.1, the sendmail transport (Swift_Transport_SendmailTransport) was vulnerable to an arbitrary shell execution if the "From" header came from a non-trusted source and no "Return-Path" is configured. This has been fixed in 5.2.1. If you are using sendmail as a transport, you are encouraged to upgrade as soon as possible.
- Record
GHSA-4qpj-gxxg-jqg4- Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
References
github.com/swiftmailer/swiftmailer/commit/b4b78af55e5e87f5ff07c06c6be7963c44562f80
github.com/swiftmailer/swiftmailer/commit/efc430606a5faed864b969adfbdc5363ce2115a2
github.com/FriendsOfPHP/security-advisories/blob/master/swiftmailer/swiftmailer/2014-06-13.yaml
web.archive.org/web/20150219063146/http://blog.swiftmailer.org/post/88660759928/security-fix-swiftmailer-5-2-1-released
blog.swiftmailer.org/post/88660759928/security-fix-swiftmailer-5-2-1-released
github.com/advisories/GHSA-4qpj-gxxg-jqg4
github.com/swiftmailer/swiftmailer