CVE-2017-9841

published 27 Jun 2017 · updated 21 Oct 2025

PHPUnit Command Injection Vulnerability

10.0CriticalCVSS 9.8EPSS 100%CISA KEV · due 15 Aug 20223 public exploits

Exploited in the wild, in CISA KEV since 15 Feb 2022 (due 15 Aug 2022), with 3 public exploits. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHPUnitPHPUnit

Exploit evidence

3 public sources

kev

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2017-9841 severity on Zeptric[![CVE-2017-9841](https://zeptric.io/badge/cve/CVE-2017-9841.svg)](https://zeptric.io/cve/CVE-2017-9841)