CVE-2017-9841: Vulnerability in Phpunit Project Phpunit

Actively exploited. 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.

Exploited in the wild, Packagist, CWE-94

Exploitation
Confirmed 15 Feb 2022
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
Agencies by 15 Aug 2022

Details

Advisory ID
GHSA-r7c9-c69m-rph8
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
Weakness
CWE-94
Published
27 Jun 2017
Last change
17 Jun 2026
Ecosystem
Packagist

Affected products

Affected versions and the first fixed release

  • Phpunit Project Phpunit Through 4.8.27; From 5.0.0 before 5.6.3. Fixed in 5.6.3
  • Oracle Communications Diameter Signaling Router From 8.0.0 through 8.5.0. No fixed version recorded

Affected packages

Vulnerable version ranges and fixed releases

  • phpunit/phpunit Packagist, Affected from 4.8.19 before 4.8.28. Fixed in 4.8.28

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related