CVE-2017-9841
Confirmed PUBLISHEDUtil/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...
Recommended Action
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
At a Glance
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 Published
- Jun 27, 2017
- Exploitation Reported
- Feb 15, 2022
- CVSS
- 9.8 Critical
- EPSS
- 100.0%
Affected Versions
| Vendor | Product | Version | Status |
|---|---|---|---|
| n/a |
n/a
|
n/a |
Affected |
CVE References
- GLSA-201711-15 security.gentoo.org · Vendor Advisory https://security.gentoo.org/glsa/201711-15
- 101798 securityfocus.com · VDB Entry http://www.securityfocus.com/bid/101798
- 1039812 securitytracker.com · VDB Entry http://www.securitytracker.com/id/1039812
- oracle.com/security-alerts/cpuoct2021.html oracle.com · CVE Record https://www.oracle.com/security-alerts/cpuoct2021.html
- GitHub — sebastianbergmann/phpunit github.com · CVE Record https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845...
Show 2 more references
- GitHub — sebastianbergmann/phpunit github.com · CVE Record https://github.com/sebastianbergmann/phpunit/pull/1956
- web.archive.org/web/20170701212357/http://phpunit.vulnbuster... web.archive.org · CVE Record http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters....
Recommended Actions
- Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
- Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
- Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.
Known Exploited Vulnerability Sources
Catalogues that list this CVE as a known exploited vulnerability.
Per-source evidence links for KEV attestations are available through the KEVIntel Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| CISA First | 2022-02-15 00:00 UTC |
| The Shadowserver | 2026-05-31 00:00 UTC |
Scanner Artifacts
Nuclei and Metasploit references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-9841.yaml | Apr 25, 2025 |
Virtual Patch
Compensating WAF rules to help reduce exposure to this CVE. Rule content and deployable vendor exports are available with KEVIntel Enterprise.
KEVIntel does not currently have a virtual patch for this CVE. When available, KEVIntel virtual patches ship as deployable ModSecurity, Cloudflare, and AWS WAF rules.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to KEVIntel Enterprise users.
CVSS Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
Exploitation Status
Exploited in the wild
Recorded 2022-02-15 00:00:00 UTC · CISA
Proof of concept available
Recorded 2020-01-06 23:27:15 UTC · GitHub
Weaknesses (CWE)
-
Improper Control of Generation of Code ('Code Injection')
Scanner Integrations
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-9841.yaml | Apr 25, 2025 |
Potential Proof of Concepts
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2023-03-13 07:42:32 UTC · 4 stars
A Tool for scanning CVE-2017-9841 with multithread
github · Created 2022-04-20 07:01:20 UTC · 0 stars
CVE-2017-9841批量扫描及利用脚本。PHPUnit是其中的一个基于PHP的测试框架。 PHPUnit 4.8.28之前的版本和5.6.3之前的5.x版本中的Util/PHP/eval-stdin.php文件存在安全漏洞。远程攻击者可通过发送以‘<?php’字符串开头的HTTP POST数据利用该漏洞执行任意PHP代码。
github · Created 2022-04-09 11:12:58 UTC · 2 stars
phpunit-shell | CVE_2017-9841
github · Created 2022-03-20 07:01:52 UTC · 2 stars
RCE exploit for PHP Unit 5.6.2
github · Created 2020-06-24 09:37:04 UTC · 0 stars
github · Created 2020-01-06 23:27:15 UTC · 0 stars
CVE-2017-9841 detector script
nuclei · Created Unknown
Timeline
Key exploitation, disclosure, scanner coverage, and KEV attestation events for this CVE.
-
00:00 UTC about 2 months ago00:00 UTC · about 2 months ago
KEV confirmed by The Shadowserver
Exploitation attested by an external source
-
00:00 UTC about 1 year ago00:00 UTC · about 1 year ago
Nuclei template available
Scanner coverage available
-
00:00 UTC over 4 years ago00:00 UTC · over 4 years ago
Added to CISA KEV
Listed in the CISA Known Exploited Vulnerabilities catalog
-
23:27 UTC over 6 years ago23:27 UTC · over 6 years ago
Public PoC available
Public proof-of-concept code published
-
17:00 UTC about 9 years ago17:00 UTC · about 9 years ago
CVE published
Vulnerability disclosed publicly
-
00:00 UTC about 9 years ago00:00 UTC · about 9 years ago
CVE ID reserved
Identifier reserved by the CNA
Automate This Intelligence with the Pro API
Confidence scoring, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
Pro API Example
GET /api/v2/pro/kevs/CVE-2017-9841
{
"cve_id": "CVE-2017-9841",
"title": "Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows ...",
"affected_vendor": "PHPUnit",
"affected_product": "PHPUnit",
"affected_versions": [
{ "vendor": "...", "product": "...", "status": "affected", "display_label": "..." }
],
"confidence": "Confirmed",
"cvss_score": 9.8,
"epss_score": 0.99999,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "...": "Pro API fields" },
"proof_of_concepts": [ "..." ],
"scanner_integrations": [ "..." ]
}