CVE-2017-9841 Details
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.
A remote code execution vulnerability exists in PHPUnit versions prior to 4.8.28 and 5.x prior to 5.6.3. The issue arises in the 'eval-stdin.php' file, where the 'eval' function is used to execute PHP code from the HTTP POST request. This vulnerability can be exploited on servers with an exposed '/vendor' directory, allowing access to the vulnerable 'eval-stdin.php' script.
Users can upgrade to PHPUnit versions 4.8.28, 5.6.3, or 6.x. Alternatively, PHPUnit can be removed from the production environment or the vulnerability can be patched manually by modifying the 'eval-stdin.php' file to use 'php://stdin' instead of 'php://input'.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
This CVE is in CISA's Known Exploited Vulnerabilities Catalog
Reference CISA's BOD 22-01 and Known Exploited Vulnerabilities Catalog for further guidance and requirements.
| Vulnerability Name | Date Added | Due Date | Required Action |
|---|---|---|---|
| PHPUnit Command Injection Vulnerability | Feb 15, 2022 | Aug 15, 2022 | Apply updates per vendor instructions. |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| phpunit project phpunit | <= 4.8.27 >= 5.0.0, < 5.6.3 |
CPE
Remediation
| |
| oracle communications diameter signaling router | >= 8.0.0, <= 8.5.0 |
CPE
Remediation
| |
Change History
19 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | Modified Analysis | [email protected] |
| Oct 22, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Apr 3, 2025 | Modified Analysis | [email protected] |
| Feb 7, 2025 | CVE Modified | CISA-ADP |
| Jan 22, 2025 | Modified Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 18, 2022 | Modified Analysis | [email protected] |
| Oct 20, 2021 | CVE Modified | [email protected] |
| Jan 14, 2020 | Modified Analysis | [email protected] |
| Jan 10, 2020 | CVE Modified | [email protected] |
| Nov 21, 2017 | CVE Modified | [email protected] |
| Nov 17, 2017 | CVE Modified | [email protected] |
| Nov 15, 2017 | CVE Modified | [email protected] |
| Jul 6, 2017 | Initial Analysis | [email protected] |