CVE-2017-9841

CriticalActively exploited (CISA KEV)

Description

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.

SeverityCritical
CVSS9.8
Exploit probability—
ProductPHPUnit
PublishedJun 27, 2017
First seenJun 27, 2017
Added to KEVFeb 15, 2022

How to fix

CISA required action

Apply updates per vendor instructions.

CISA due date: Aug 15, 2022
Update
  • phpunit_project phpunit5.6.3 or later
  • phpunit/phpunit4.8.28, 5.6.3 or later

Affected products

ProductAffected versionsFixed in
phpunit_project phpunitv ≤ 4.8.27, 5.0.0 ≤ v < 5.6.35.6.3
oracle communications_diameter_signaling_router8.0.0 ≤ v ≤ 8.5.0—
phpunit/phpunitPackagist4.8.19 ≤ v < 4.8.28, 5.0.10 ≤ v < 5.6.34.8.28, 5.6.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2017-9841 · PHPUnit · Dark Radar