CVE-2017-9841
PHPUnit Command Injection Vulnerability
- Critical 9.8
- Exploited: added to CISA KEV 15 Feb 2022
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.
Key facts
- Published
- 27 Jun 2017
- Last changed
- 21 Oct 2025
- Assigned by
- mitre
- KEV added
- 15 Feb 2022
- KEV fix due
- 15 Aug 2022
- EPSS
- 99.999% likely to be exploited in the next 30 days, higher than 99.994% of CVEs (scores for 15 Nov 2026)
- SSVC (CISA)
- Exploitation: active; Automatable: yes; Technical impact: total
Severity scores
Each score is shown as its source gave it. They are not averaged or merged.
- 9.8CVSS 3.1, Criticalfrom CISA (ADP container)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What to do
- Apply updates per vendor instructions.CISA KEV required action
Historical context and remediation
This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.
No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.
Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a |
|
Timeline
- 27 Jun 2017 Published
- 15 Feb 2022 CVE-2017-9841 added to CISA KEV
- 15 Feb 2022 Added to the CISA KEV catalogue