CVE-2017-9841
Critical 9.8KEV · exploitedPublic exploitFix status unknownPHPUnit Command Injection Vulnerability
Record last updated
CVSS score
Critical on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Among the highest-scored CVEs. A prediction, not evidence.
CISA remediation deadline
Passed 1559 days ago for U.S. federal agencies
Description
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.
Weakness: CWE-94
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- None documented
- Vendor guidance
- security.gentoo.org (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| PHPUnit | PHPUnit | Not documented | Not documented | CISA KEV |
Timeline
Disclosure
CVE record published by mitre
Source: CVE Program (opens in a new tab)
15 Feb 2022KEV
Added to the CISA Known Exploited Vulnerabilities catalog
Source: CISA KEV (opens in a new tab)
15 Feb 2022Exploitation
Exploitation confirmed by CISA KEV
Source: CISA KEV (opens in a new tab)
Vendor guidance and references
- GLSA-201711-15 (opens in a new tab)vendor-advisory, x_refsource_gentoo, x_transferred
- http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/ (opens in a new tab)x_refsource_misc, x_transferred
- 101798 (opens in a new tab)vdb-entry, x_refsource_bid, x_transferred
- 1039812 (opens in a new tab)vdb-entry, x_refsource_sectrack, x_transferred
- https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5 (opens in a new tab)x_refsource_misc, x_transferred
- https://github.com/sebastianbergmann/phpunit/pull/1956 (opens in a new tab)x_refsource_misc, x_transferred
- https://nvd.nist.gov/vuln/detail/CVE-2017-9841 (opens in a new tab)government
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841 (opens in a new tab)government-resource
- https://www.oracle.com/security-alerts/cpuoct2021.html (opens in a new tab)x_refsource_misc, x_transferred
Public exploit code
Exploit or proof-of-concept code is publicly available on Exploit-DB. Shown as a prioritization and defensive-testing signal — treat exploit code as hostile and run it only against systems you are authorized to test.