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
CVE-2016-10033 explained
CVE-2016-10033 is a command injection flaw in the mailSend function of the isMail transport in PHPMailer before 5.2.18. A crafted Sender property containing a backslash double quote can pass extra parameters to the mail command, which may let remote attackers execute arbitrary code. It is listed in CISA's Known Exploited Vulnerabilities catalog.
Impact
A remote, unauthenticated attacker may execute arbitrary code on the server where an application uses PHPMailer's isMail transport with an attacker-influenced Sender property. No user interaction is required and attack complexity is low. Successful exploitation can fully compromise confidentiality, integrity and availability of the affected system. CISA lists the flaw as known to be exploited; ransomware use is unknown.
Who is affected
The facts list one affected release: Ubuntu 16.04 LTS, source package libphp-phpmailer. A fixed version, 5.2.14+dfsg-1ubuntu0.1~esm1, is available only through Ubuntu Pro (ESM). Ubuntu 16.04 LTS is end of life for standard support, so systems without an Ubuntu Pro subscription will not receive this fix. No other Ubuntu or Debian releases are listed in the facts.
Written with AI from the data on this page and checked against it automatically.
Official description
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
- This vulnerability could affect an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18
- github.com/advisories/GHSA-5f37-gxvh-23v6
- nvd.nist.gov/vuln/detail/CVE-2016-10033
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
What to do
- Identify systems and applications that use
libphp-phpmaileror a bundled PHPMailer copy older than 5.2.18. - On Ubuntu 16.04 LTS with Ubuntu Pro, update
libphp-phpmailerto5.2.14+dfsg-1ubuntu0.1~esm1or later. - Restart PHP and web server services so applications load the updated library.
- Without Ubuntu Pro, plan an upgrade to a supported Ubuntu release.
- Check applications that ship their own PHPMailer copy and update them separately.
Written with AI from the data on this page and checked against it automatically.
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" ;; esac3. 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')
Questions about CVE-2016-10033
- Is CVE-2016-10033 being exploited?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2025-07-07, with a US federal due date of 2025-07-28. Whether it is used in ransomware campaigns is unknown.
- Can I get the fix on Ubuntu 16.04 LTS without Ubuntu Pro?
- No. The fixed
libphp-phpmailerversion5.2.14+dfsg-1ubuntu0.1~esm1is only available through Ubuntu Pro (ESM). Ubuntu 16.04 LTS is end of life, so systems without a subscription should be upgraded to a supported release. - Why is Ubuntu's priority medium when the CVSS severity is critical?
- The facts give a CVSS severity of critical and an Ubuntu priority of medium but do not explain the difference. Given the CISA listing as a known exploited vulnerability, treat patching as urgent.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
Other advisories
Trackers and catalogs
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.