Skip to content
Server Security Center
KEVcritical9.8

CVE-2016-10033: PHPMailer Command Injection

PHPMailer · listed in the CISA catalog of actively exploited vulnerabilities since 2025-07-07.

CVSS v3.1 (CVE record)
9.8
critical
EPSS (exploit probability, 30 days)
99.7%
among the highest 0.1% of all CVEs
Added to CISA KEV
2025-07-07
US federal due date 2025-07-28
Ubuntu priority
medium

What is CVE-2016-10033?

The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code via a \" (backslash double quote) in a crafted Sender property.

CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

CISA notes

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

  • Ubuntu 16.04 LTS·libphp-phpmailer

    fix via Ubuntu Pro

    Fixed: 5.2.14+dfsg-1ubuntu0.1~esm1

Check and fix on a server

Run on each Ubuntu or Debian server. Replace libphp-phpmailer with the source package from the table above.

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="libphp-phpmailer"'

2. Compare each installed version with the fixed version for your release from the table

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the fix

sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="libphp-phpmailer"{print $1}')

Services keep running the old code until they are restarted – restart the affected service or check with needrestart.

Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.