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.
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.
Also known as · GHSA-r7c9-c69m-rph8 (GitHub Security Advisories)Source: ENISA EUVD
- 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 impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity98% × 45%Impact severity (EG Severity): CVSS 9.8 of 10. Never the KEV-floored or EPSS-lifted EG Score.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
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (9.8): severity, escalated by confirmed exploitation. This CVE's 9.8 is its impact severity (EG Severity), not escalated.
- EG Severity
- 9.8 CRITICALCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
- EG Likelihood
- >99.9% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-28). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- CISA KEV and EG-KEV Tier 1 (exploited in the wild)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Act at medium mission impactAttend at low mission impact; Act at medium or high.CISA BOD 26-04: 3 days & forensic triage if the affected system is publicly exposed; 3 days & forensic triage if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.
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.
The score's inputs: 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
Source timeline
Each source's own date for this CVE, as that source states it, in UTC. For vendor and authority advisories, each publisher's earliest advisory is shown, for at most 12 publishers, and only for publishers whose advisory dates we hold as the publisher's own publication time. The EchelonGraph column shows when our collectors recorded the event, only where that was within 72 hours of the source's date (for a row without one, of the CVE's publication).
| Source | Event | Source's date | Recorded by EchelonGraph | Link |
|---|---|---|---|---|
| MITRE CorporationMITRE · CVE Program | Made public, as the CNA states it | 27 Jun 2017 | — | CVE.org record |
| CVE.orgMITRE · CVE Program | CVE Record published | 27 Jun 2017, 17:00 UTC | recorded later, in a bulk import or a late collection | CVE.org record |
| CISA KEV | Added to CISA's Known Exploited Vulnerabilities catalogCISA due date: 15 Aug 2022 | 15 Feb 2022 | recorded later, in a bulk import or a late collection | CISA KEV catalog |
| GitHub Advisory DatabaseGitHub Advisory Database (CC BY 4.0)Licence | GitHub advisory publishedGHSA-r7c9-c69m-rph8 | 26 Mar 2022, 00:19 UTC | recorded later, in a bulk import or a late collection | GitHub advisory |
| CVE.orgMITRE · CVE Program | CVE Record last updated | 21 Oct 2025, 23:55 UTC | — | CVE.org record |
Advisory Details (6)
Auto-updated Nov 24, 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 10.5.65 (contains commit 284a69fb88a2)
https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5Vendor Advisories for CVE-2017-9841(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(3)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | phpunit (5.1.3-1+ubuntu3+esm1) @ xenial | 2026-11-27 | ubuntu |
| composer | phpunit/phpunit @ 4.8.28 (fixes >= 4.8.19, < 4.8.28) | — | ghsa |
| composer | phpunit/phpunit @ 5.6.3 (fixes >= 5.0.10, < 5.6.3) | — | ghsa |
These rows come from Ubuntu and GitHub (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 10× in last 7d / 46× 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 its CVE.org record (CNA or CISA ADP). 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). "EchelonGraph re-scored" is our own recompute of this CVE's score, not an update from a source, and is not counted in the refreshes above. Most recent first.
Showing the most recent 100 of 847 rows 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. None are among the latest 100 rows. The 747 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-11-29 12:22 UTCEchelonGraph re-scored
- 2026-11-29 12:22 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-28 11:25 UTCEchelonGraph re-scored
- 2026-11-28 11:24 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-27 10:27 UTCEchelonGraph re-scored
- 2026-11-27 10:27 UTCVendor advisory
- 2026-11-27 10:27 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-26 16:28 UTCEPSS rescoreEPSS >99.9% · 99th percentile
- 2026-11-26 09:30 UTCEchelonGraph re-scored
- 2026-11-26 09:30 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-25 16:27 UTCEPSS rescoreEPSS >99.9% · 99th percentile
- 2026-11-25 08:33 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-25 03:15 UTCEchelonGraph re-scored
- 2026-11-25 03:15 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-24 02:18 UTCEchelonGraph re-scored
- 2026-11-24 02:18 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-23 01:20 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-22 00:21 UTCEchelonGraph re-scored
- 2026-11-22 00:21 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-21 16:29 UTCEPSS rescoreEPSS >99.9% · 99th percentile
- 2026-11-20 23:22 UTCEchelonGraph re-scored
- 2026-11-20 23:22 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-19 22:25 UTCEchelonGraph re-scored
- 2026-11-19 22:25 UTCVendor advisory
- 2026-11-19 22:25 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
Show 75 moreShow fewer
- 2026-11-18 21:26 UTCEchelonGraph re-scored
- 2026-11-18 21:26 UTCVendor advisory
- 2026-11-18 21:26 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-17 20:28 UTCEchelonGraph re-scored
- 2026-11-17 20:28 UTCVendor advisory
- 2026-11-17 20:28 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-16 19:30 UTCEchelonGraph re-scored
- 2026-11-16 19:30 UTCVendor advisory
- 2026-11-16 19:30 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-15 18:32 UTCEchelonGraph re-scored
- 2026-11-15 18:32 UTCVendor advisory
- 2026-11-15 18:32 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-14 17:34 UTCEchelonGraph re-scored
- 2026-11-14 17:34 UTCVendor advisory
- 2026-11-14 17:34 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-13 16:37 UTCEchelonGraph re-scored
- 2026-11-13 16:37 UTCVendor advisory
- 2026-11-13 16:37 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-12 15:31 UTCEchelonGraph re-scored
- 2026-11-12 15:31 UTCVendor advisory
- 2026-11-12 15:31 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-11 14:33 UTCEchelonGraph re-scored
- 2026-11-11 14:33 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-10 13:36 UTCEchelonGraph re-scored
- 2026-11-10 13:36 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-09 12:38 UTCEchelonGraph re-scored
- 2026-11-09 12:38 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-08 11:41 UTCEchelonGraph re-scored
- 2026-11-08 11:41 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-07 10:44 UTCEchelonGraph re-scored
- 2026-11-07 10:44 UTCVendor advisory
- 2026-11-07 10:43 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-06 09:46 UTCEchelonGraph re-scored
- 2026-11-06 09:46 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-05 08:49 UTCEchelonGraph re-scored
- 2026-11-05 08:49 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-04 07:52 UTCEchelonGraph re-scored
- 2026-11-04 07:52 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-03 06:54 UTCEchelonGraph re-scored
- 2026-11-03 06:54 UTCVendor advisory
- 2026-11-03 06:54 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-02 18:55 UTCOSV refresh
- 2026-11-02 05:57 UTCEchelonGraph re-scored
- 2026-11-02 05:57 UTCVendor advisory
- 2026-11-02 05:57 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-01 08:44 UTCGHSA enrichmentGHSA-r7c9-c69m-rph8 · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-01 08:44 UTCEchelonGraph re-scored
- 2026-11-01 04:59 UTCEchelonGraph re-scored
- 2026-11-01 04:59 UTCVendor advisory
- 2026-10-31 04:02 UTCEchelonGraph re-scored
- 2026-10-31 04:02 UTCVendor advisory
- 2026-10-30 03:04 UTCEchelonGraph re-scored
- 2026-10-30 03:04 UTCVendor advisory
- 2026-10-29 02:07 UTCEchelonGraph re-scored
- 2026-10-29 02:07 UTCVendor advisory
- 2026-10-28 01:10 UTCEchelonGraph re-scored
- 2026-10-28 01:10 UTCVendor advisory
- 2026-10-27 00:10 UTCEchelonGraph re-scored
- 2026-10-25 23:12 UTCVendor advisory
- 2026-10-25 19:29 UTCEchelonGraph re-scored
- 2026-10-24 22:15 UTCEchelonGraph re-scored
- 2026-10-24 22:15 UTCVendor advisory
- 2026-10-23 21:18 UTCEchelonGraph re-scored
- 2026-10-23 21:18 UTCVendor advisory
- 2026-10-22 20:20 UTCEchelonGraph re-scored
- 2026-10-22 20:20 UTCVendor advisory
- 2026-10-21 19:21 UTCEchelonGraph re-scored
- 2026-10-21 19:21 UTCVendor advisory
- 2026-10-20 18:24 UTCEchelonGraph re-scored
- 2026-10-19 17:25 UTCEchelonGraph re-scored
- 2026-10-19 17:25 UTCVendor advisory
- 2026-10-18 16:27 UTCVendor advisory
- 2026-10-18 10:25 UTCEchelonGraph re-scored
- 2026-10-17 21:19 UTCEchelonGraph re-scored
- 2026-10-17 21:19 UTCVendor advisory
Publicly available exploits
(12 references, 10 shown)Public exploit code is referenced for this CVE (1 Exploit-DB entry, 8 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 repositories: 6 of 10 labelled (4 exploit code, 2 detection tools).
- GitHub checkerdrcrypterdotru/PHPUnit-GoScanDetection tool (read on 2026-11-23)Published Aug 30, 2025
PHPUnit CVE-2017-9841 Scanner in Go clean and fire.
Open source ↗ - GitHub PoCK3ysTr0K3R/CVE-2017-9841-EXPLOITExploit code (read on 2026-11-26)Published Jun 10, 2025
A PoC exploit for CVE-2017-9841 - PHPUnit Remote Code Execution(RCE)
Open source ↗ - GitHub PoCChocapikk/CVE-2017-9841Exploit code (read on 2026-11-27)Published 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-ExploitExploit code (read on 2026-11-27)Published 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-9841Exploit code (read on 2026-11-23)Published 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 repositoryludy-dev/PHPUnit_eval-stdin_RCEDetection tool (read on 2026-11-27)Published Sep 14, 2020
(CVE-2017-9841) PHPUnit_eval-stdin_php Remote Code Execution
Open source ↗
Labels marked on GitHub repositories are EchelonGraph's. Gemini (Google Vertex AI) and Claude (Anthropic) read each repository's description, the first 6,000 bytes of its README and up to 200 paths of its file list; where they do not give the same label with every check passing, or the repository's text uses words of both kinds, a second Claude model is asked once. These labels are shown only where at least two of these models gave them (all three where the text uses words of both kinds) and every quote and file those models cited was found in the repository (rule poc-kind-verifier-v4). Each label shows the day its repository was read; it is read again only when those checks change, and is taken down if it no longer passes them. Repository content belongs to its authors.
Related CVEs(same product + same CWE)
Same product
3 shownDebian:11:phpunit · Debian:14: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.