[ CVE-2017-9841 · Published 27 Jun 2017 ]
PHPUnit Command Injection Vulnerability
[ Why it matters ]Priority signals
- Exploited in the wild: on CISA's Known Exploited Vulnerabilities list since 2022-02-15
- EPSS: 100% chance of exploitation in the next 30 days (higher than 100% of CVEs)
- Critical severity: CVSS 9.8
[ Description ]Official 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.
CISA: 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.
[ Fixes ]Fixes and patches
CISA required action (US federal deadline 15 Aug 2022): Apply updates per vendor instructions.
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on oracle.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
[ References ]References
- web.archive.org/web/20170701212357/http://phpunit.vulnbusters.comThird Party Advisory
- www.securityfocus.com/bid/101798Broken Link
- www.securitytracker.com/id/1039812Broken Link
- github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5PatchThird Party Advisory
- github.com/sebastianbergmann/phpunit/pull/1956PatchThird Party Advisory
- security.gentoo.org/glsa/201711-15Third Party Advisory
- www.oracle.com/security-alerts/cpuoct2021.htmlPatchThird Party Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalogUS Government Resource