CVE-2017-9841

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.

Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
99.999%
chance of exploitation in the next 30 days
among the highest of scored CVEs · 2026-11-16
CISA KEV
Listed
added 2022-02-15
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 1
Exploit-DB: 1

Weakness

CISA Known Exploited Vulnerabilities entry

Vulnerability namePHPUnit Command Injection Vulnerability
Vendor / productPHPUnit / PHPUnit
Date added2022-02-15
Federal remediation due date2022-08-15
Required actionApply updates per vendor instructions.
Known ransomware campaign useUnknown

CISA SSVC decision points

Exploitationactive
Automatableyes
Technical impacttotal
Scored2025-02-07

Timeline

  1. 2017-06-27Published by the CNA17:00 UTC
  2. 2022-02-02First Exploit-DB entry (EDB-ID 50702)1681 days after publication
  3. 2022-02-15Added to the CISA KEV catalog1694 days after publication
  4. 2022-03-26GitHub advisory published (GHSA-r7c9-c69m-rph8)1733 days after publication
  5. 2025-02-07CISA SSVC decision recorded2782 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 50702webappsphp2022-02-02no

Nuclei templates:

GitHub advisory GHSA-r7c9-c69m-rph8, affected packages:

EcosystemPackageVulnerable rangePatched
Packagistphpunit/phpunit>= 4.8.19, < 4.8.284.8.28
Packagistphpunit/phpunit>= 5.0.10, < 5.6.35.6.3

Affected products

VendorProduct
oraclecommunications_diameter_signaling_router
phpunit_projectphpunit

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources