Security Digest · Critical advisory (no CVE assigned)
GHSA-4qpj-gxxg-jqg4: Swiftmailer Sendmail transport arbitrary shell execution
Prior to 5.2.1, the sendmail transport (SwiftTransportSendmailTransport) was vulnerable to an arbitrary shell execution if the "From" header came from a non-trusted source and no "Return-Path" is configured.
GitHub-reviewed · critical
Should you act?
- Only if you depend on one of the packages below, directly or transitively, in a vulnerable version. Check your lockfile with
composer audit. - No CVE has been assigned, so it will not appear in CVE-based scanners that ignore GitHub advisories.
npm audit,pip-auditand Dependabot do read GitHub advisories.
Affected packages
| Ecosystem | Package | Vulnerable | First fixed |
|---|---|---|---|
| Composer (PHP) | swiftmailer/swiftmailer | >= 4.0.0, < 5.2.1 | 5.2.1 |
Details
Prior to 5.2.1, the sendmail transport (SwiftTransportSendmailTransport) 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.
Sources and references
- GitHub Advisory GHSA-4qpj-gxxg-jqg4 github.com
- github.com github.com
- github.com github.com
- github.com github.com
- web.archive.org web.archive.org
- blog.swiftmailer.org blog.swiftmailer.org
Critical Composer (PHP) advisories · Today’s Security Digest