Critical

Swiftmailer Sendmail transport arbitrary shell execution

  • Disclosed: 29.05.2024
  • Updated: 11.10.2026 10:22

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package swiftmailer/swiftmailer >= 4.0.0, < 5.2.1 5.2.1

References

CVSS score -
Weakness (CWE)
-
Platform
Composer
Package
swiftmailer/swiftmailer
Disclosed
29.05.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-4qpj-gxxg-jqg4 - CC BY 4.0

Vulnerability history: swiftmailer/swiftmailer

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
05.2022 05.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 2
  • Medium 1

Disclosures per year

  1. 2022: 1
  2. 2023: 0
  3. 2024: 2
  4. 2025: 0
  5. 2026: 0
  1. Swiftmailer Sendmail transport arbitrary shell execution this entry
    Critical ghsa-4qpj-gxxg-jqg4 >= 4.0.0, < 5.2.1 5.2.1
  2. Medium · 5.0 CVE-2024-28859 >= 4.0.0, < 6.2.5 6.2.5
  3. Critical · 9.8 CVE-2016-10074 < 5.4.5 5.4.5

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.