← Back to CVEs
CVE-2017-9841
CRITICALCISA KEV9.8
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.
CVE Details
CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published6/27/2017
Last Modified4/21/2026
Sourcekev
Honeypot Sightings0
CISA KEV
VendorPHPUnit
ProductPHPUnit
Vulnerability NamePHPUnit Command Injection Vulnerability
KEV Date Added2022-02-15
Remediation Due Date2022-08-15
Ransomware UseUnknown
Affected Products
oracle:communications_diameter_signaling_routerphpunit_project:phpunit
Weaknesses (CWE)
CWE-94CWE-94
References
http://www.securityfocus.com/bid/101798(cve@mitre.org)
http://www.securitytracker.com/id/1039812(cve@mitre.org)
https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5(cve@mitre.org)
https://github.com/sebastianbergmann/phpunit/pull/1956(cve@mitre.org)
https://security.gentoo.org/glsa/201711-15(cve@mitre.org)
https://www.oracle.com/security-alerts/cpuoct2021.html(cve@mitre.org)
http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/(af854a3a-2127-422b-91ae-364da2661108)
http://www.securityfocus.com/bid/101798(af854a3a-2127-422b-91ae-364da2661108)
http://www.securitytracker.com/id/1039812(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/sebastianbergmann/phpunit/pull/1956(af854a3a-2127-422b-91ae-364da2661108)
https://security.gentoo.org/glsa/201711-15(af854a3a-2127-422b-91ae-364da2661108)
https://www.oracle.com/security-alerts/cpuoct2021.html(af854a3a-2127-422b-91ae-364da2661108)
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841(134c704f-9b21-4f2e-91b3-4a467353bcc0)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.