PHPUnit Command Injection Vulnerability
n/a — n/a
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.
9.8
100.0%
Vector breakdown
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- Jun 27, 2017
- Modified
- Jun 17, 2026
- Added to KEV
- Feb 15, 2022
- Federal patch due
- Aug 15, 2022
CISA required action
Apply updates per vendor instructions.
Weakness classification
Affected packages
Proof-of-concept & exploitation references
8 foundWeaponization
Public repositories whose name or description references CVE-2017-9841, found via a live GitHub search at request time. These are community-sourced signals, not a verified working exploit - cross-check each one before relying on it, and treat higher star counts and recent activity as (weak) corroboration, not proof.
- RandomRobbieBF/phpunit-brute★ 30
Tool to try multiple paths for PHPunit RCE CVE-2017-9841
updated Jun 1, 2026
- incogbyte/laravel-phpunit-rce-masscaner★ 23
Masscanner for Laravel phpunit RCE CVE-2017-9841
updated Feb 10, 2026
- Chocapikk/CVE-2017-9841★ 7
PHPUnit RCE
updated Aug 10, 2026
- K3ysTr0K3R/CVE-2017-9841-EXPLOIT★ 6
A PoC exploit for CVE-2017-9841 - PHPUnit Remote Code Execution(RCE)
updated Apr 8, 2026
- ludy-dev/PHPUnit_eval-stdin_RCE★ 6
(CVE-2017-9841) PHPUnit_eval-stdin_php Remote Code Execution
updated Nov 20, 2023
- MadExploits/PHPunit-Exploit★ 5
PHPunit Checker CVE-2017-9841 By MrMad
updated Jan 4, 2025
- MrG3P5/CVE-2017-9841★ 4
A Tool for scanning CVE-2017-9841 with multithread
updated Aug 23, 2023
- akr3ch/CVE-2017-9841★ 3
RCE exploit for PHP Unit 5.6.2
updated Dec 11, 2025
References
How this class of flaw gets exploited
Frequently asked questions
What is CVE-2017-9841?
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.
How severe is CVE-2017-9841?
CVE-2017-9841 has a CVSS base score of 9.8 out of 10 (CVSS 3.1).
Is CVE-2017-9841 actively exploited in the wild?
Yes. CVE-2017-9841 is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added Feb 15, 2022, meaning CISA has confirmed evidence of active exploitation.
What is the EPSS score for CVE-2017-9841?
100.0% - meaning FIRST.org's EPSS model estimates a 100.0% probability this vulnerability will be exploited in the wild within 30 days (100% percentile among all scored CVEs).
Is there exploit tooling available for CVE-2017-9841?
Yes - a public Nuclei template referencing CVE-2017-9841 exist in public repositories we checked. We also found 8 public GitHub repositories referencing this CVE.
What type of vulnerability is CVE-2017-9841?
CVE-2017-9841 is classified under CWE-94 (CWE-94 Improper Control of Generation of Code ('Code Injection')).
Cross-checked against
Impactr finds and proves whether CVE-2017-9841 - or flaws like it - are actually reachable in your own web apps and APIs, with a reproducible exploit as evidence.
Join the waitlist