HighGHSA-v5c9-mmw9-829qCVE-2008-5619

PHPMailer susceptible to arbitrary code execution

Published 14 May 2022 · Updated 5 Dec 2024

Affected package

Affected
<5.2.10
Fixed in
5.2.10
Update to the fixed version for your release line, for example:composer require phpmailer/phpmailer:^5.2.10

Details

html2text.php in Chuggnutt HTML to Text Converter, as used in PHPMailer before 5.2.10, RoundCube Webmail (roundcubemail) 0.2-1.alpha and 0.2-3.beta, Mahara, and AtMail Open 1.03, allows remote attackers to execute arbitrary code via crafted input that is processed by the preg_replace function with the eval switch.

Is GHSA-v5c9-mmw9-829q in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected phpmailer/phpmailer, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.