GHSA-r7c9-c69m-rph8CriticalCVSS 9.8

Code Injection in PHPUnit

Published
March 26, 2022
Last Modified
October 22, 2025

🔗 CVE IDs covered (1)

📋 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.

🎯 Affected products2

  • composer/phpunit/phpunit:>= 4.8.19, < 4.8.28
  • composer/phpunit/phpunit:>= 5.0.10, < 5.6.3

🔗 References (13)