VDB
Sign up
HIGH

GHSA-v5c9-mmw9-829q

PHPMailer susceptible to arbitrary code execution

Quick fix

GHSA-v5c9-mmw9-829q — phpmailer/phpmailer: upgrade to the fixed version with the command below.

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/phpmailer/phpmailer
Introduced in: 0Fixed in: 5.2.10
Fixcomposer require phpmailer/phpmailer:^5.2.10

References