Swiftmailer Sendmail transport arbitrary shell execution
Priority LOW 38Published · Updated
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
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.
Why it matters now
Fix Fixed swiftmailer/swiftmailer (Packagist): 5.2.1
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | swiftmailer/swiftmailer (Packagist) | 4.0.0 to before 5.2.1 | 5.2.1 | Patch available | GHSA-4qpj-gxxg-jqg4 |
- swiftmailer/swiftmailer (Packagist) Vendor— Affected 4.0.0 to before 5.2.1 Fixed in 5.2.1 Patch available GHSA-4qpj-gxxg-jqg4
Remediation
- Fix · GHSA-4qpj-gxxg-jqg4 swiftmailer/swiftmailer (Packagist) Fixed in 5.2.1 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-4qpj-gxxg-jqg4
References
Other 6
- https://github.com/swiftmailer/swiftmailer/commit/b4b78af55e5e87f5ff07c06c6be7963c44562f80
- https://github.com/swiftmailer/swiftmailer/commit/efc430606a5faed864b969adfbdc5363ce2115a2
- https://github.com/FriendsOfPHP/security-advisories/blob/master/swiftmailer/swiftmailer/2014-06-13.yaml
- https://github.com/swiftmailer/swiftmailer
- https://web.archive.org/web/20150219063146/http://blog.swiftmailer.org/post/88660759928/security-fix-swiftmailer-5-2-1-released
- http://blog.swiftmailer.org/post/88660759928/security-fix-swiftmailer-5-2-1-released
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences