CVE-2017-9841

CRITICAL CVSS 3.1: 9.8 EPSS 100.0% ACTIVE EXPLOIT
Updated Jun 17, 2026
Phpunit_Project

CISA Known Exploited Vulnerability (KEV)

This vulnerability is actively exploited in the wild. Immediate patching is strongly recommended.

Due Date: Aug 15, 2022

Parameter Value
CVSS 9.8 (CRITICAL)
Affected Versions 5.0.0 — 8.5.0
Fixed In 5.6.3
Type CWE-94 (Code Injection)
Vendor Phpunit_Project
Public PoC Yes

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 3

Configuration From (including) Up to (excluding)
Phpunit_Project Phpunit
cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:*
— <= 4.8.27
Phpunit_Project Phpunit
cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:*
5.0.0 5.6.3
Oracle Communications_Diameter_Signaling_Router
cpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:*
8.0.0 <= 8.5.0

Related Vulnerabilities