Read the docs
TI-2017-07214 Aliases CVE-2017-9841GHSA-r7c9-c69m-rph8

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote…

Priority CRITICAL 100Exploited in the wildCWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

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.

Why it matters now

Exploitation Active In CISA KEV since 2022-02-15CISA due date 2022-08-15
EPSS 0.99999 99th percentileScored 2026-11-07
Fix Fixed phpunit/phpunit (Packagist): 4.8.28, 5.6.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Active
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—phpunit/phpunit (Packagist)4.8.19 to before 4.8.284.8.28Patch availableGHSA-r7c9-c69m-rph8
—phpunit/phpunit (Packagist)5.0.10 to before 5.6.35.6.3Patch availableGHSA-r7c9-c69m-rph8
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • phpunit/phpunit (Packagist) Vendor— Affected 4.8.19 to before 4.8.28 Fixed in 4.8.28 Patch available GHSA-r7c9-c69m-rph8
  • phpunit/phpunit (Packagist) Vendor— Affected 5.0.10 to before 5.6.3 Fixed in 5.6.3 Patch available GHSA-r7c9-c69m-rph8

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:*up to 4.8.27; 5.0.0 to before 5.6.3VulnerablePhpunit Project
cpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:*8.0.0 – 8.5.0VulnerableOracle
  • cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:* Versions up to 4.8.27; 5.0.0 to before 5.6.3 Vulnerable ·Phpunit Project
  • cpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:* Versions 8.0.0 – 8.5.0 Vulnerable ·Oracle

Remediation

  • Fix · GHSA-r7c9-c69m-rph8 phpunit/phpunit (Packagist) Fixed in 4.8.28 Advisory →
  • Fix · GHSA-r7c9-c69m-rph8 phpunit/phpunit (Packagist) Fixed in 5.6.3 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2022-02-15 Added to CISA KEV
  2. 2026-10-02 Threatist record created from CVE-2017-9841
  3. 2026-10-03 Alias added: GHSA-r7c9-c69m-rph8

References

Sources