CVE-2017-9841
CONFIRMED EXPLOITEDPHPUnit Command Injection Vulnerability
Is PHPUnit PHPUnit affected by CVE-2017-9841?
PHPUnit PHPUnit is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2017-9841, added on 2022-02-15. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (3 vulnerable CPE entries): oracle communications_diameter_signaling_router and phpunit_project phpunit.
Published CPE version bounds mark releases below 5.6.3 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2022-08-15.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2026-90817Shared weaknessVanderbilt University Research Electronic Data Capture (REDCap)
Vanderbilt University Research Electronic Data Capture (REDCap) Code Injection Vulnerability
- CVE-2026-40217Shared weaknessBerriAI LiteLLM
BerriAI LiteLLM Unprotected Alternate Channel Vulnerability
- CVE-2026-115731Shared weaknessPerforce Puppet Enterprise
Perforce Puppet Enterprise Deserialization of Untrusted Data Vulnerability
- CVE-2026-0322Shared weaknessPalo Alto Networks PAN-OS
Palo Alto Networks PAN-OS Code Injection Vulnerability
- CVE-2014-1761Neighboring entryMicrosoft Word
Microsoft Word Memory Corruption Vulnerability
- CVE-2018-15982Neighboring entryAdobe Flash Player
Adobe Flash Player Use-After-Free Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
PHPUnit allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with a "<?php " substring, as demonstrated by an attack on a site with an exposed /vendor folder, i.e., external access to the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with a "<?php " substring, as demonstrated by an attack on a site with an exposed /vendor folder, i.e., external access to the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2022-02-15. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of PHPUnit has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- HTTP / web application surface (PHPUnit PHPUnit): inspect reverse-proxy, WAF, and application access/error logs alongside `Zeek http.log` and `Suricata eve.json` for anomalous requests targeting exposed endpoints.
- Inventory all hosts running PHPUnit PHPUnit and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply updates per vendor instructions.
- http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/Third Party Advisory
- http://www.securityfocus.com/bid/101798Broken Link
- http://www.securitytracker.com/id/1039812Broken Link
- https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5PatchThird Party Advisory
- https://github.com/sebastianbergmann/phpunit/pull/1956PatchThird Party Advisory
- https://security.gentoo.org/glsa/201711-15Third Party Advisory
- https://www.oracle.com/security-alerts/cpuoct2021.htmlPatchThird Party Advisory
- http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/Third Party Advisory
- http://www.securityfocus.com/bid/101798Broken Link
- http://www.securitytracker.com/id/1039812Broken Link
- https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5PatchThird Party Advisory
- https://github.com/sebastianbergmann/phpunit/pull/1956PatchThird Party Advisory
- https://security.gentoo.org/glsa/201711-15Third Party Advisory
- https://www.oracle.com/security-alerts/cpuoct2021.htmlPatchThird Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Fast, template-driven vulnerability scanner by ProjectDiscovery
Intercepting web proxy and automated web application security testing tool
Multi-threaded IDS, IPS, and network security monitoring engine
Behavior-based open-source intrusion prevention system (IPS) and log analysis engine