USN-8986-1: Swift Mailer vulnerability
Publication date
3 November 2026
Overview
Swift Mailer could be made to run programs if it received specially crafted input.
Releases
Packages
- libphp-swiftmailer - free feature-rich PHP mailer
Details
Dawid Golunski discovered that Swift Mailer did not properly sanitize
e-mail addresses in the mail transport. A remote attacker could possibly
use this issue to pass extra parameters to the mail command and execute
arbitrary code.
Dawid Golunski discovered that Swift Mailer did not properly sanitize
e-mail addresses in the mail transport. A remote attacker could possibly
use this issue to pass extra parameters to the mail command and execute
arbitrary code.
Update instructions
In general, a standard system update will make all the necessary changes.
Learn more about how to get the fixes.The problem can be corrected by updating your system to the following package versions:
| Ubuntu Release | Package Version | ||
|---|---|---|---|
| 16.04 LTS xenial | php-swiftmailer – 5.4.1-1ubuntu1+esm1 | ||
Reduce your security exposure
Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.