CVE-2017-9841
highpriority · act · 90OT risk · criticalKEV · exploitedEPSS 1.000 · 100 %ileexploit · PoCEURUUSadded 2022-02-15remediate by 2022-08-15
required action Apply updates per vendor instructions.
EPSS · scored 2026-10-28
PHPUnit Command Injection Vulnerability
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (19)
Public proof-of-concept and weaponised exploit code.
- CheLover86/CVE-2017-9841I like CVEs!PoC · poc_in_github
- Chocapikk/CVE-2017-9841PHPUnit RCEPoC · poc_in_github
- MadExploits/PHPunit-ExploitPHPunit Checker CVE-2017-9841 By MrMadPoC · poc_in_github
- MrG3P5/CVE-2017-9841A Tool for scanning CVE-2017-9841 with multithreadPoC · poc_in_github
affected products (8)
Products and version ranges known to be affected.
- oracle communications diameter signaling router8.0.0 → 8.5.0nvdUScpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:*
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-r7c9-c69m-rph8Code Injection in PHPUnit2022-03-26ghsa · osvUS
Util/PHP/eval-stdin.php in PHPUnit starting with 4.8.19 and before 4.8.28, as well as 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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (26)
External citations — patches, advisories, analysis.
- http://phpunit.vulnbusters.com/cnnvd
- http://web.archive.org/web/20170701212357/cnnvd
- http://www.securitytracker.com/id/1039812cnnvd
- https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5cnnvd
- https://github.com/sebastianbergmann/phpunit/pull/1956cnnvd
- https://security.gentoo.org/glsa/201711-15cnnvd
- https://vigilance.fr/vulnerability/Oracle-Communications-vulnerabilities-of-October-2021-36675cnnvd
- https://vigilance.fr/vulnerability/PHPUnit-code-execution-via-HTTP-POST-Data-45931cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan