Arbitrary Command Injection Affecting php-phpmailer package, versions <5.2.4-r0


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
93.79% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALPINE33-PHPPHPMAILER-269102
  • published30 Dec 2016
  • disclosed30 Dec 2016

Introduced: 30 Dec 2016

CVE-2016-10045  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade Alpine:3.3 php-phpmailer to version 5.2.4-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php-phpmailer package and not the php-phpmailer package as distributed by Alpine. See How to fix? for Alpine:3.3 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1