Vulnerabilities / CVE-2016-10045

critical

CVE-2016-10045

Remote Code Execution

Published Modified CWE 77
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Ubuntu (medium).

Description

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033.

Affected packages and fixed versions

SourcePackageFixed in
composer::GitHub Security Advisory Composerphpmailer/phpmailer5.2.20
alpine 3.2php-phpmailer5.2.4-r0
alpine 3.3php-phpmailer5.2.4-r0
alpine 3.4php5-phpmailer5.2.0-r1
alpine 3.5php5-phpmailer5.2.4-r1
composer::PHP Security Advisories Databasephpmailer/phpmailerno fix listed
ubuntu 16.04-ESMlibphp-phpmailer5.2.14+dfsg-1ubuntu0.1~esm1

References

All 24 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.