CVE-2020-13625 Insufficient output escaping of attachment names in PHPMailer

High 7.5 Published Updated

An output escaping bug in PHPMailer allows file attachment names with double quotes to cause misinterpretation of file types by mail relays or receivers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-13625?

CVE-2020-13625 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 8 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-116

Which versions are affected by CVE-2020-13625?

3 open source packages ship an affected version, including phpmailer/phpmailer and phpmailer. It affects 4 products.

PackageAffectedFixed in
phpmailer/phpmailer PackagistAll versions6.1.6
phpmailer/phpmailer PackagistAll versions6.1.6
phpmailer BitnamiAll versions6.1.6

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Phpmailer Project Phpmailer.

How do I fix CVE-2020-13625?

Upgrade phpmailer/phpmailer to 6.1.6 or later.

Is CVE-2020-13625 being exploited?

There is no known exploitation of CVE-2020-13625 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as BIT-phpmailer-2020-13625, DEBIAN-CVE-2020-13625, DLA-2244-1, DLA-2306-1, GHSA-f7hx-fqxw-rvvj, MGASA-2020-0313 and 2 more.

Is CVE-2020-13625 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free