CVE-2017-9841: Phpunit Project Phpunit RCE

CVE-2017-9841

NVDCVSS scored by NVD (NIST)

Vulnerability 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.
Severity Level
CRITICAL(9.8)
Published Date
Jun 27, 2017
Last Modified
Apr 21, 2026
PoC
Available(Nuclei)
Exploitation Status
ACTIVE
EPSS Score (30-Day)
94.21%Probability
Root Weakness (CWE)
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended syntax or behavior.
CVSS v3.1 Base Metrics — Score 9.8 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Phpunit Project Phpunit <= 4.8.27
  • Phpunit Project Phpunit >= 5.0.0 and < 5.6.3
  • Oracle Communications Diameter Signaling Router >= 8.0.0 and <= 8.5.0
Patched Versions
  • Phpunit Project Phpunit 5.6.3

What to do

Patch now. CISA lists this flaw as exploited in the wild and set a federal remediation deadline of Aug 15, 2022.

  1. Check whether you run Phpunit Project Phpunit and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

CISA required action: Apply updates per vendor instructions.

CISA KEV Status

Listed in Known Exploited Vulnerabilities
Added: Feb 15, 2022
Remediation due: Aug 15, 2022 (deadline passed)

Timeline

  • Jun 27, 2017Published
  • Feb 15, 2022Added to CISA KEV catalog
  • Aug 15, 2022KEV remediation due date
  • Apr 21, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Phpunit Project Phpunit CVEsYou are reading CVE-2017-9841. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 4, 2026 21:38 UTC