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

    Threat Intelligence

    Exploit Maturity
    Mature
    EPSS
    96.69% (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 ID SNYK-ALPINE32-PHPPHPMAILER-1087118
  • published 30 Dec 2016
  • disclosed 30 Dec 2016

How to fix?

Upgrade Alpine:3.2 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.2 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 Scores

version 3.1
Expand this section

NVD

9.8 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High