ADVISORIES

Vulnerability

CVE-2017-9841

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.

4 advisories report this vulnerability, across 3 ecosystems.

Critical severity Known exploited All Ubuntu 2Debian 1Packagist 1

Advisories

  • DEBIAN-CVE-2017-9841

    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…

    Known exploited CVE-2017-9841 Debian Updated 1 September 2026
  • GHSA-r7c9-c69m-rph8

    Code Injection in PHPUnit

    Critical Known exploited CVE-2017-9841 Packagist Updated 22 October 2025
  • UBUNTU-CVE-2017-9841

    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…

    Known exploited CVE-2017-9841 Ubuntu Updated 4 February 2026
  • USN-7171-1

    phpunit vulnerability

    Known exploited CVE-2017-9841 Ubuntu Updated 25 June 2026

References