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 "
CVE-2017-9841
“—” beside the score: it is equal to NVD's CVSS score.
Score elevated to 9.8 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2022-02-15), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 9.8 retained for reference. Confidence: HIGH.
- Actively exploited in the wild (CISA-KEV) — the reason this is sooner than the SSVC decision on this page at low mission impact
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8CRITICALhigh confidence
- EG Risk
- 99EG Risk 99/100
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computed (value × EchelonGraph’s weight)Severity98% × 45%The EG Score, 9.8 of 10.Exploitation100% × 40%Fixed at 100% for a CISA KEV listing: EchelonGraph's rule.Automatability100% × 15%CISA's SSVC Automatable value: yes (Vulnrichment).SSVC (CISA's decision table, applied by EchelonGraph): Attend at low mission impact; Act at medium or high.Exploitation active (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it sooner than your standard update timelines at low mission impact and as soon as possible at medium or high. - EPSS PROB
- >99.9%
- EPSS %ILE
- 99th
- KEV
- ⚠ Exploited
SSVC (CISA's decision table, applied by EchelonGraph)Attend at low mission impact; Act at medium or high.
A fix is available. Apply it sooner than your standard update timelines at low mission impact and as soon as possible at medium or high.
Exploitation active (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)3 days & forensic triage if the affected system is publicly exposed; 3 days & forensic triage if it is not.
In CISA KEV yes (CISA's KEV catalog) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
CISA required action“Apply updates per vendor instructions.”
Quoted verbatim from CISA's Known Exploited Vulnerabilities catalog. CISA directs it at US federal civilian executive branch agencies under Binding Operational Directive (BOD) 26-04, which replaced BOD 22-01 on 10 June 2026; it is not EchelonGraph's advice. CISA's notes: https://nvd.nist.gov/vuln/detail/CVE-2017-9841
Published
June 27, 2017
Last Modified
June 17, 2026
Advisory Details (6)
Auto-updated Oct 12, 2026CVE-2017-9841 RCE vulnerability in phpunit
http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/PHPUnit: Remote code execution (GLSA 201711-15) — Gentoo security
https://security.gentoo.org/glsa/201711-15Fix insulated tests with phpdbg
Fix merged in sebastianbergmann/phpunit PR #1956 on 2015-11-17 — awaiting tagged release
https://github.com/sebastianbergmann/phpunit/pull/1956commit 284a69fb88a2 (sebastianbergmann/phpunit)
Patch available: sebastianbergmann/phpunit 13.2.4 (contains commit 284a69fb88a2)
https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5Patch Availability(1)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | phpunit (5.1.3-1+ubuntu3+esm1) @ xenial | 2026-10-13 | ubuntu |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(5 across 5 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| phpunit | — |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| phpunit | — |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| phpunit | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| phpunit | — |
| — |
Packagist(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| phpunit/phpunit | 5.0.10 ... 5.6.2 (48 versions) |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(1)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 28× in last 7d / 168× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
Showing the most recent 99 of 743 refreshes on record for this CVE.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 1 repeat row among the latest 100 is merged into the row it repeats. The 644 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-10-14 18:23 UTCEG score recompute
- 2026-10-14 16:27 UTCEPSS rescoreEPSS >99.9% · 99th percentile
- 2026-10-13 17:25 UTCEG score recompute
- 2026-10-13 17:25 UTCVendor advisory
- 2026-10-12 16:28 UTCEG score recompute
- 2026-10-12 05:05 UTCVendor advisory
- 2026-10-12 01:13 UTCVendor advisory
- 2026-10-11 21:22 UTCEG score recompute
- 2026-10-11 21:22 UTCVendor advisory
- 2026-10-11 17:31 UTCEG score recompute
- 2026-10-11 13:39 UTCEG score recompute
- 2026-10-11 13:39 UTCVendor advisory
- 2026-10-11 09:44 UTCVendor advisory
- 2026-10-11 05:54 UTCVendor advisory
- 2026-10-10 14:22 UTCVendor advisory
- 2026-10-10 10:32 UTCVendor advisory
- 2026-10-10 06:41 UTCVendor advisory
- 2026-10-10 02:51 UTCVendor advisory
- 2026-10-09 23:02 UTCVendor advisory
- 2026-10-09 19:13 UTCVendor advisory
- 2026-10-09 15:23 UTCVendor advisory
- 2026-10-09 11:33 UTCVendor advisory
- 2026-10-09 07:43 UTCVendor advisory
- 2026-10-09 03:53 UTCVendor advisory
- 2026-10-09 00:03 UTCVendor advisory
Show 74 moreShow fewer
- 2026-10-08 12:30 UTCVendor advisory
- 2026-10-08 08:41 UTCVendor advisory
- 2026-10-08 04:51 UTCVendor advisory
- 2026-10-07 17:21 UTCVendor advisory
- 2026-10-07 09:39 UTCVendor advisory
- 2026-10-07 05:50 UTCVendor advisory
- 2026-10-07 02:00 UTCVendor advisory
- 2026-10-06 22:10 UTCVendor advisory
- 2026-10-06 18:20 UTCEG score recompute
- 2026-10-06 18:20 UTCVendor advisory
- 2026-10-06 15:12 UTCEPSS rescoreEPSS >99.9% · 99th percentile
- 2026-10-06 14:31 UTCVendor advisory
- 2026-10-06 10:41 UTCVendor advisory
- 2026-10-06 02:59 UTCVendor advisory
- 2026-10-05 19:16 UTCVendor advisory
- 2026-10-05 15:24 UTCVendor advisory
- 2026-10-05 11:33 UTCVendor advisory
- 2026-10-05 07:44 UTCVendor advisory
- 2026-10-05 03:54 UTCVendor advisory
- 2026-10-05 00:01 UTCVendor advisory
- 2026-10-04 16:20 UTCVendor advisory
- 2026-10-04 12:29 UTCVendor advisory
- 2026-10-04 08:39 UTCVendor advisory
- 2026-10-04 04:48 UTCVendor advisory
- 2026-10-04 00:59 UTCVendor advisory
- 2026-10-03 21:09 UTCVendor advisory
- 2026-10-03 17:19 UTCVendor advisory
- 2026-10-03 13:30 UTCVendor advisory
- 2026-10-03 05:49 UTCVendor advisory
- 2026-10-03 01:59 UTCVendor advisory
- 2026-10-02 22:09 UTCVendor advisory
- 2026-10-02 18:18 UTCVendor advisory
- 2026-10-02 06:40 UTCVendor advisory
- 2026-10-01 22:56 UTCVendor advisory
- 2026-10-01 19:07 UTCVendor advisory
- 2026-10-01 15:16 UTCVendor advisory
- 2026-10-01 11:26 UTCVendor advisory
- 2026-10-01 07:37 UTCVendor advisory
- 2026-10-01 03:47 UTCVendor advisory
- 2026-09-30 23:58 UTCVendor advisory
- 2026-09-30 16:16 UTCVendor advisory
- 2026-09-30 08:36 UTCVendor advisory
- 2026-09-30 04:46 UTCVendor advisory
- 2026-09-30 00:56 UTCVendor advisory
- 2026-09-29 21:07 UTCVendor advisory
- 2026-09-29 17:13 UTCVendor advisory
- 2026-09-29 09:30 UTCVendor advisory
- 2026-09-29 05:41 UTCVendor advisory
- 2026-09-29 01:51 UTCVendor advisory
- 2026-09-28 22:01 UTCEG score recompute
- 2026-09-28 22:01 UTCVendor advisory
- 2026-09-28 14:18 UTCVendor advisory
- 2026-09-28 10:28 UTCVendor advisory
- 2026-09-28 06:38 UTCVendor advisory
- 2026-09-28 02:48 UTCVendor advisory
- 2026-09-27 22:59 UTCVendor advisory
- 2026-09-27 21:51 UTCCISA KEV update
- 2026-09-27 19:09 UTCVendor advisory
- 2026-09-27 15:19 UTCVendor advisory
- 2026-09-27 11:27 UTCVendor advisory
- 2026-09-27 07:37 UTCVendor advisory
- 2026-09-27 03:47 UTCVendor advisory
- 2026-09-26 23:56 UTCVendor advisory
- 2026-09-26 20:06 UTCVendor advisory
- 2026-09-26 16:16 UTCVendor advisory
- 2026-09-26 12:24 UTCVendor advisory
- 2026-09-26 08:34 UTCVendor advisory
- 2026-09-26 04:44 UTCVendor advisory
- 2026-09-26 00:52 UTCVendor advisory
- 2026-09-25 21:02 UTCVendor advisory
- 2026-09-25 19:35 UTCCISA KEV update
- 2026-09-25 17:12 UTCVendor advisory
- 2026-09-25 14:55 UTCCISA KEV update
- 2026-09-25 13:22 UTCVendor advisory
Publicly available exploits
(11 references, 10 shown)Public exploit code is referenced for this CVE (1 Exploit-DB entry, 7 GitHub PoCs), as are 1 Nuclei detection template, 2 GitHub checker repositories. A detection template checks whether a system is affected; it is not necessarily exploit code. A GitHub repository named or described as a checker or scanner checks whether a system is affected; it is not necessarily exploit code. Defenders should treat patch urgency accordingly.
- GitHub checkerdrcrypterdotru/PHPUnit-GoScanPublished Aug 30, 2025
PHPUnit CVE-2017-9841 Scanner in Go clean and fire.
Open source ↗ - GitHub PoCChocapikk/CVE-2017-9841Published Aug 27, 2023
PHPUnit RCE
Open source ↗ - GitHub checkerMrG3P5/CVE-2017-9841Published Mar 13, 2023
A Tool for scanning CVE-2017-9841 with multithread
Open source ↗ - GitHub PoCMadExploits/PHPunit-ExploitPublished Dec 7, 2022
PHPunit Checker CVE-2017-9841 By MrMad
Open source ↗ - GitHub PoCp1ckzi/CVE-2017-9841Published Apr 9, 2022
phpunit-shell | CVE_2017-9841
Open source ↗ - GitHub PoCakr3ch/CVE-2017-9841Published Mar 20, 2022
RCE exploit for PHP Unit 5.6.2
Open source ↗ - Exploit-DBEDB-50702Published Feb 2, 2022
PHP Unit 4.8.28 - Remote Code Execution (RCE) (Unauthenticated)
Open source ↗ - GitHub PoCincogbyte/laravel-phpunit-rce-masscanerPublished Jul 4, 2021
Masscanner for Laravel phpunit RCE CVE-2017-9841
Open source ↗ - GitHub PoCludy-dev/PHPUnit_eval-stdin_RCEPublished Sep 14, 2020
(CVE-2017-9841) PHPUnit_eval-stdin_php Remote Code Execution
Open source ↗ - Nucleihttp/cves/2017/CVE-2017-9841.yamlPublished Aug 7, 2020
PHPUnit - Remote Code Execution
Open source ↗
Related CVEs(same product + same CWE)
Same product
2 shownDebian:11:phpunit · Packagist:phpunit/phpunit
Same CWE
10 shownCWE-94
Frequently asked(6)
What is CVE-2017-9841?
When was CVE-2017-9841 made public?
Is CVE-2017-9841 actively exploited?
What is the CVSS score of CVE-2017-9841?
Which products are affected by CVE-2017-9841?
How do I remediate CVE-2017-9841?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2017-9841
Is Your Infrastructure Affected by CVE-2017-9841?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.