Description
PHPMailer before 6.1.6 contains an output escaping bug when the name of a file attachment contains a double quote character. This can result in the file type being misinterpreted by the receiver or any mail relay processing the message.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libphp-phpmailer | 6.1.6-1 | — |
| Debian 13 | libphp-phpmailer | 6.1.6-1 | — |
| Debian 12 | libphp-phpmailer | 6.1.6-1 | — |
| Debian 9 | libphp-phpmailer | 5.2.14+dfsg-2.3+deb9u2 | DLA-2306-1 |
| Debian 8 | libphp-phpmailer | 5.2.9+dfsg-2+deb8u6 | DLA-2244-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libphp-phpmailer | 5.2.14+dfsg-2.3+deb9u2build0.18.04.1 | USN-4505-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | libphp-phpmailer | 6.2.0-2ubuntu0.1~esm1 | USN-5956-1 |
| Ubuntu Pro 20.04 LTS | libphp-phpmailer | 6.0.6-0.1ubuntu0.1~esm1 | USN-5956-1 |
| Ubuntu Pro 18.04 LTS | libphp-phpmailer | 5.2.14+dfsg-2.3+deb9u2ubuntu0.1~esm1 | USN-5956-1 |
| Ubuntu Pro 16.04 LTS | libphp-phpmailer | 5.2.14+dfsg-1ubuntu0.1~esm1 | USN-5956-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP1 | cacti +1 | 1.2.13-bp151.4.12.1 | openSUSE-SU-2020:1106-1 |
| SUSE Package Hub 12 | cacti | 1.2.13-11.1 | openSUSE-SU-2020:1060-1 |
| SUSE Package Hub 12 | cacti-spine | 1.2.13-8.1 | openSUSE-SU-2020:1060-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | cacti | 1.2.18-1.2 | openSUSE-SU-2024:10670-1 |
| openSUSE Leap 15.2 | cacti | 1.2.13-11.1 | openSUSE-SU-2020:1060-1 |
| openSUSE Leap 15.2 | cacti-spine | 1.2.13-8.1 | openSUSE-SU-2020:1060-1 |
| openSUSE Leap 15.1 | cacti | 1.2.13-11.1 | openSUSE-SU-2020:1060-1 |
| openSUSE Leap 15.1 | cacti-spine | 1.2.13-8.1 | openSUSE-SU-2020:1060-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | cacti | 1.2.13-r0 | — |
| Alpine v3.23 | cacti | 1.2.13-r0 | — |
| Alpine v3.22 | cacti | 1.2.13-r0 | — |
| Alpine v3.21 | cacti | 1.2.13-r0 | — |
| Alpine v3.20 | cacti | 1.2.13-r0 | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | cacti | 1.2.13-r0 | — |
| Alpine v3.18 | cacti | 1.2.13-r0 | — |
| Alpine v3.17 | cacti | 1.2.13-r0 | — |
| Alpine v3.16 | cacti | 1.2.13-r0 | — |
| Alpine v3.15 | cacti | 1.2.13-r0 | — |
| Alpine v3.14 | cacti | 1.2.13-r0 | — |
| Alpine v3.13 | cacti | 1.2.13-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | phpmailer/phpmailer | < 6.1.6 | 6.1.6 | GHSA-f7hx-fqxw-rvvj |
Advisories 7
- USN-5956-1 libphp-phpmailer vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-2244-1 libphp-phpmailer - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2306-1 libphp-phpmailer - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-4505-1 libphp-phpmailer vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2020:1060-1 Security update for cacti, cacti-spine SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10670-1 cacti-1.2.18-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1106-1 Security update for cacti, cacti-spine SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/PHPMailer/PHPMailer/releases/tag/v6.1.6
- https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-f7hx-fqxw-rvvj
- [debian-lts-announce] 20200611 [SECURITY] [DLA 2244-1] libphp-phpmailer security update mailing-list
- FEDORA-2020-06e87e71fe vendor-advisory
- FEDORA-2020-0bbe6304e3 vendor-advisory
- openSUSE-SU-2020:1060 vendor-advisory
- openSUSE-SU-2020:1106 vendor-advisory
- [debian-lts-announce] 20200802 [SECURITY] [DLA 2306-1] libphp-phpmailer security update mailing-list
- USN-4505-1 vendor-advisory