CVE-2017-9841
CVE-2017-9841 is a code injection in Phpunit Project Phpunit (CVSS 9.8, Critical).
Exploited in the wild. In CISA KEV since 2022‑02‑15. Fixed in 4.8.28.
Public exploit: 1 sourceFix4.8.28Upgrade to this build
e.g. PHPUnit - Remote Code Execution · OID 1.3.6.1.4.1.25623.1.0.108439
What to do
Find your product and version, then upgrade to the build on the right.
- Packagist phpunit/phpunitAffected: ≥ 4.8.19, < 4.8.28Upgrade to: 4.8.28Stated by: GitHub advisory
- Phpunit Project PhpunitAffected: ≤ 4.8.27Upgrade to: after 4.8.27Stated by: NVD
- Oracle Communications Diameter Signaling RouterAffected: ≥ 8.0.0, ≤ 8.5.0Upgrade to: after 8.5.0Stated by: NVD
- Open-source community PHPUnitAffected: before 4.8.27 inclusiveUpgrade to: not statedStated by: BDU
Versions as the sources state them. Full version matrix after sign-in
Coverage timeline
1 publisherAdded to CISA KEV catalog
Sourced from public security reporting — each date is when it was published, not when it happened.
What it is
From the CVE record
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.
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Listed as exploited in the wild since 2022-02-15.
US federal agencies must remediate by 2022-08-15.
Apply updates per vendor instructions.
- Public exploits
1 source with a proof of concept or module.
Exploit links, PoCs and Metasploit modules after sign-in- EPSS
100% chance of exploitation activity in the next 30 days, which ranks it in the 99th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
A public exploit existed 46 days before the patch.
- OpenVAS check added
- Patch availablerecord updated
- Public exploit / PoCsource: github-pocnuclei check added
- Added to CISA KEV
- Publishedweakness classified, att&ck mapped
Affected products
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored 9.8 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/
- securityfocus.com/bid/101798
- securitytracker.com/id/1039812
And 13 more references. See all after sign-in
In the news
Questions about CVE-2017-9841
- Is CVE-2017-9841 being exploited?
- Yes. CVE-2017-9841 is in CISA's Known Exploited Vulnerabilities catalog since 2022-02-15, which means attackers are using it in the wild.
- Which versions are affected by CVE-2017-9841?
- Phpunit: ≤ 4.8.27. Phpunit/phpunit: ≥ 4.8.19, < 4.8.28. Communications Diameter Signaling Router: ≥ 8.0.0, ≤ 8.5.0. 1 more product is listed in the record.
- How do I fix or mitigate CVE-2017-9841?
- Upgrade to 4.8.28 or later. The advisory is on oracle.com.
Last updated
Related articles
All articlesWatch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next exploited one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Phpunit, not every advisory. This one: actively exploited.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI