All reports
Critical

Code Injection in PHPUnit

Affected versions

Version ranges need review.

Affected versions
>= 5.0.10, < 5.6.3
Fixed version
5.6.3
Affected versions
>=5.0.10,<5.6.3|>=4.8.19,<4.8.28
Fixed version
Not reported
Affected versions
>= 4.8.19, < 4.8.28
Fixed version
4.8.28

Exploitation

CVE-2017-9841

Exploitation in the wild has been reported · CISA KEV

Date added: 2022-02-15

Probability of exploitation in the next 30 days: 100.00%

FIRST EPSS · 2026-11-19

Description

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.

Links

Credits

  • donatj