CVE-2017-9841
Exploitation confirmed. First attested on 2022-02-15 by CISA-ADP, CISA KEV, GCVE · kevintel, GCVE · shadowserver.
- Published2017-06-27
- Fixed in5.6.3 · 4.8.28
- WeaknessCWE-94
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2017-06-2717:29CVE publishedNVD
- 2022-02-15Listed as exploited by GCVEGCVE
- 2022-02-15Exploitation first reportedCISA KEV
- 2022-02-15Added to the CISA KEV catalogCISA KEV
- 2025-02-0714:09SSVC exploitation set to activeCISA-ADP
- 2026-10-2319:23First public proof of conceptPoC-in-GitHub
- 2026-10-2319:23EPSS crossed 10 %FIRST EPSS
Observed activity
isMalicious corpus · updated 2026-10-23 21:37 UTC| Indicator | Role | Seen | Source |
|---|---|---|---|
| 152.32.130.136 | payload delivery | 20 h ago | Romain Marcoux - Malicious IPs, Community IOC feed, T145 - Black Mirror IPv4 Blocklist, Bitwire - Inbound Blocklist, AbuseIPDB aggregate - 90-day reported IPv4 (borestad), FFraud - Confirmed abusive IPs, ShadowWhisperer - IPs Threats, ConfigServer - Threat IPs all services 365d, Maltrail Trails (release CSV) |
| 150.40.117.224 | payload delivery | 20 h ago | Romain Marcoux - Malicious IPs, Community IOC feed, T145 - Black Mirror IPv4 Blocklist, Bitwire - Inbound Blocklist, AbuseIPDB aggregate - 90-day reported IPv4 (borestad), FFraud - Confirmed abusive IPs, ShadowWhisperer - IPs Threats Unclassified, Maltrail Trails (release CSV) |
| 13.140.137.178 | payload delivery | 20 h ago | Romain Marcoux - Malicious IPs, Community IOC feed, T145 - Black Mirror IPv4 Blocklist, Bitwire - Inbound Blocklist, AbuseIPDB aggregate - 90-day reported IPv4 (borestad), FFraud - Confirmed abusive IPs, Maltrail Trails (release CSV) |
| 84.247.129.208 | payload delivery | 20 h ago | Romain Marcoux - Malicious IPs, Community IOC feed, T145 - Black Mirror IPv4 Blocklist, Bitwire - Inbound Blocklist, AbuseIPDB aggregate - 90-day reported IPv4 (borestad), FFraud - Confirmed abusive IPs, ConfigServer - Threat IPs all services 365d, ShadowWhisperer - IPs Threats Unclassified, Maltrail Trails (release CSV) |
| 175.200.104.40 | payload delivery | 20 h ago | Duggytuxy - Blacklist Ips For Fortinet Firewall Aa.txt, Romain Marcoux - Malicious Outgoing IPs, Romain Marcoux - Malicious IPs, IPsum Level 1, Community IOC feed, ThreatHive - Hive Blocklist, T145 - Black Mirror IPv4 Blocklist, Bitwire - Outbound Blocklist, Data-Shield IPv4 Blocklist, Bitwire - Inbound Blocklist, IPsum - Malicious IPs, Borestad - AbuseIPDB Blocklist (30d), AbuseIPDB - IP Blacklist, Borestad - AbuseIPDB Blocklist (1d), AbuseIPDB aggregate - 90-day reported IPv4 (borestad), FFraud - Confirmed abusive IPs, cbuijs - Bad IPs, toxyl - SSH honeypot swarm attacker hosts (3m), ConfigServer - Threat IPs all services 365d, SecureWAN - CTI feed (2+ sources), Maltrail Trails (release CSV), Y3ll0w - CrowdSec CAPI decisions |
| 95.59.142.69 | payload delivery | 21 h ago | FireHOL - Blocklist Net Ua, FireHOL - Firehol Level4, Romain Marcoux - Malicious IPs, Community IOC feed, ThreatHive - Hive Blocklist, T145 - Black Mirror IPv4 Blocklist, Bitwire - Inbound Blocklist, Borestad - AbuseIPDB Blocklist (30d), Opendbl Net - Blocklistde All.list, Romain Marcoux - Malicious Outgoing IPs, Blocklist - All SSH attacks (48h), Blocklist - All Attacks (48h), IPsum Level 1, Threatview IP Blocklist, Ultimate Hosts Blacklist - Blocklist.de, Malware-Filter - Botnet Filter, Malware-Filter - Botnet Filter IPs, IPsum - Malicious IPs, FireHOL - Blocklist De, FireHOL - Blocklist De Ssh, FireHOL - Firehol Level2, Bitwire - Outbound Blocklist, HaGeZi TIF - Threat Intelligence Feed IPs, CIRCL OSINT Feed, AbuseIPDB aggregate - 90-day reported IPv4 (borestad), blocklist.net.ua - Full Blocklist (CSV), FFraud - Confirmed abusive IPs, cbuijs - Bad IPs, ShadowWhisperer - IPs Threats, toxyl - SSH honeypot swarm attacker hosts (3m), ConfigServer - Threat IPs all services 365d, 0xwarrior - Lab/honeypot malicious IPs, NETMOUNTAINS - Curated IP blocklist, NetAPI - Compromised IPs (current), SecureWAN - CTI feed (2+ sources), Maltrail Trails (release CSV), kamalmjt - Emerging attackers |
| 31.77.156.62 | payload delivery | 21 h ago | FireHOL - Blocklist Net Ua, FireHOL - Firehol Level4, Romain Marcoux - Malicious IPs, Community IOC feed, T145 - Black Mirror IPv4 Blocklist, Bitwire - Inbound Blocklist, AbuseIPDB aggregate - 90-day reported IPv4 (borestad), blocklist.net.ua - Full Blocklist (CSV), FFraud - Confirmed abusive IPs, cbuijs - Bad IPs, ShadowWhisperer - IPs Threats Unclassified, Maltrail Trails (release CSV) |
Block these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2017-9841?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2017-9841?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.x | ≥ 5.0.0, < 5.6.3 | 5.6.3 | NVD |
| 5.x | ≥ 5.0.10, < 5.6.3 | 5.6.3 | OSV |
| 4.8 | ≥ 4.8.19, < 4.8.28 | 4.8.28 | OSV |
| 4.8 | ≤ 4.8.27 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.x | ≥ 8.0.0, ≤ 8.5.0 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Fix
- Update Phpunit project phpunit to 5.6.3 · 4.8.28
- CISA’s required action: Apply updates per vendor instructions.due 2022-08-15
Advisories and patches
- github.comPatch
- github.comPatch
- www.oracle.comPatch
Detection
read 2026-10-23 19:23 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- 18 repositories, unverifiedmbrasile/CVE-2017-9841RandomRobbieBF/phpunit-brutecyberharsh/Php-unit-CVE-2017-9841ludy-dev/PHPUnit_eval-stdin_RCEincogbyte/laravel-phpunit-rce-masscaner PoC-in-GitHub
CISA Known Exploited Vulnerability
- Date Added
- 2022-02-15
- Patch Due Date
- 2022-08-15
- Ransomware Use
- Unknown
- Required Action
- Apply updates per vendor instructions.
Sources
- CISA KEVKEV entry2022-02-15
- GCVEexploitation2022-02-15
- CISA-ADPSSVC decisionactive2025-02-07
- OpenCVESSVC decisionactive—
- CISA-ADPCVSS 3.19.82025-02-07
- NVDCVSS 3.19.8read 2026-10-23
- NVDCVSS 2.07.5read 2026-10-23
- CISA-ADPweakness (CWE)CWE-942025-02-07
- NVDweakness (CWE)CWE-94read 2026-10-23
- FIRST EPSSEPSS score99.9 %read 2026-10-23
- PoC-in-GitHubproof of concept18read 2026-10-23
- OSVaffected packages—
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2017-06-27
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
Frequently asked questions
What is CVE-2017-9841?
Is CVE-2017-9841 actively exploited?
What is the CVSS score for CVE-2017-9841?
Running phpunit/phpunit? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.