CriticalGHSA-4qpj-gxxg-jqg4
Swiftmailer Sendmail transport arbitrary shell execution
Published 29 May 2024 · Updated 4 Dec 2024
Affected package
swiftmailer/swiftmailerComposer
- Affected
- >=4.0.0 <5.2.1
- Fixed in
- 5.2.1
Update to the fixed version for your release line, for example:
composer require swiftmailer/swiftmailer:^5.2.1Details
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.
Is GHSA-4qpj-gxxg-jqg4 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected swiftmailer/swiftmailer, and gives you the command that fixes it.
References
- Linkgithub.com/swiftmailer/swiftmailer/commit/b4b78af55e5e87f5ff07c06c6be7963c44562f80
- Linkgithub.com/swiftmailer/swiftmailer/commit/efc430606a5faed864b969adfbdc5363ce2115a2
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/swiftmailer/swiftmailer/2014-06-13.yaml
- Packagegithub.com/swiftmailer/swiftmailer
- Linkweb.archive.org/web/20150219063146/http://blog.swiftmailer.org/post/88660759928/security-fix-swiftmailer-5-2-1-released
- Linkblog.swiftmailer.org/post/88660759928/security-fix-swiftmailer-5-2-1-released
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.