Input validation error in PHPMailer - CVE-2020-13625

 

Input validation error in PHPMailer - CVE-2020-13625

Published: July 6, 2020 / Updated: November 6, 2026


Vulnerability identifier: #VU29531
CSH Severity: Low
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-13625
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass implemented security restrictions

The vulnerability exists due to insufficient validation of user-supplied  file attachments with  a double quote character. A remote attacker can pass specially crafted filename to the application and bypass implemented security restrictions.


Affected software

PHPMailer
Cacti
SUSE Package Hub for SUSE Linux Enterprise
SUSE Linux
Opensuse
Ubuntu
Fedora
cacti (Alpine package)
libphp-phpmailer (Ubuntu package)
php-PHPMailer
php-phpmailer6

How to mitigate CVE-2020-13625

Install updates from vendor's website.

PHPMailer - update to 6.1.6
Cacti - update to 1.2.13
libphp-phpmailer (Ubuntu package) - addressed in versions Ubuntu Pro, 5.2.14+dfsg-2.3+deb9u2build0.18.04.1
php-PHPMailer - addressed in versions 5.2.28-2.fc31, 5.2.28-2.fc32
php-phpmailer6 - addressed in versions 6.1.6-1.fc31, 6.1.6-2.fc32

External References

Related Security Bulletins