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-audit and Dependabot do read GitHub advisories.

Affected packages

EcosystemPackageVulnerableFirst fixed
Composer (PHP)swiftmailer/swiftmailer>= 4.0.0, < 5.2.15.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

  1. GitHub Advisory GHSA-4qpj-gxxg-jqg4 github.com
  2. github.com github.com
  3. github.com github.com
  4. github.com github.com
  5. web.archive.org web.archive.org
  6. blog.swiftmailer.org blog.swiftmailer.org

Critical Composer (PHP) advisories · Today’s Security Digest