CVE-2017-9841
PHPUnit Command Injection Vulnerability
- Actively exploited
- Critical · 9.8 of 10
- Exploited since
- 15 Feb 2022 added to the CISA list
- Chance of attacks
- over 99.9% in the next 30 days (FIRST EPSS)
- Fix deadline
- 15 Aug 2022 for US federal agencies
- Published
- 27 Jun 2017 in the NVD
What this means
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.
CISA
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.
NIST National Vulnerability Database
What to do
Apply updates per vendor instructions.
CISA's required action. If you use the product, install the vendor's update as soon as possible.
Affected
- n/a n/a
Official sources
- nvd.nist.gov/vuln/detail/CVE-2017-9841
- web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/
- securityfocus.com/bid/101798
- securitytracker.com/id/1039812
- github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5
- github.com/sebastianbergmann/phpunit/pull/1956
- security.gentoo.org/glsa/201711-15
- oracle.com/security-alerts/cpuoct2021.html
- web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/
Data from the NIST National Vulnerability Database, the CISA Known Exploited Vulnerabilities list, FIRST EPSS and ENISA, checked 18 Nov 2026. CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.