SARA / Free Tools / CVE / CVE-2017-9841

CVE-2017-9841 — PHPUnit Command Injection Vulnerability

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 a

CVSS
EPSS
94.21% (top 0.10%)
CWE
Published
2017-06-27T17:00:00.000Z
Last modified
2025-10-21T23:55:39.301Z
CVSS vector
CISA KEV — Actively Exploited
Added to KEV
2022-02-15
BOD 22-01 due
2022-08-15
Ransomware use
Unknown

01What is this vulnerability?

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.

02Affected products

VendorProductVersions
na / n/an/a

03Active exploitation status

Yes — actively exploited. Added to the CISA KEV catalog on 2022-02-15. Ransomware use: Unknown.

04Recommended remediation

05Technical details

For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.

06Detection signatures

Open the Sigma generator with a pre-filled prompt for this CVE to draft a starting detection in your stack of choice:

Open in Sigma generator →

07Related CVEs

No directly-cited follow-up CVEs in the KB record for this advisory. The references list in section 09 carries the vendor cross-references.

08Timeline

09References

Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →