Vulnerability · CVE-2017-9841
PHPUnit Command Injection Vulnerability
Published Jun 27, 2017 · catalog updated Jun 16, 2026 · PHPUnit PHPUnit
Patch now
CVE-2017-9841 is in the CISA known-exploited catalog, due Aug 15, 2022. Confirm PHPUnit PHPUnit against the vendor advisory and apply that fix. The CVSS score does not change the priority.
- Severity
- Critical9.8
- Known exploitation
- CISA KEV and VulnCheck KEV
- EPSS
- 100.00%
- Remediation
- Remediation guidance
- Affected products
- cpe oracle/communications diameter signaling router · cpe phpunit project/phpunit · vendor PHPUnit PHPUnit
PHPUnit 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. VulnCheck canary evidence. Initial-access exploit intelligence.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe oracle/communications diameter signaling routerversion unspecified
- cpe phpunit project/phpunitversion unspecified
- vendor PHPUnit PHPUnitversion unspecified
How to fix CVE-2017-9841
Recommended remediation
Apply updates per vendor instructions. CISA due date Aug 15, 2022.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2017-9841 is in the CISA known-exploited catalog, due Aug 15, 2022. Confirm PHPUnit PHPUnit against the vendor advisory and apply that fix. The CVSS score does not change the priority.
Which versions are affected?
Affected version ranges are not on this record. Apply updates per vendor instructions.
What should an analyst verify?
CWE-94: Code Injection. EPSS 100.00%. The CISA KEV listing is the exploitation evidence. A public exploit reference is linked in Sources. That is not the same as confirmed exploitation. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Jun 27, 2017 · Catalog
Detected
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.
Feb 15, 2022 · CISA KEV
Known exploited
Apply updates per vendor instructions.
Aug 15, 2022 · CISA KEV
Remediation due
Apply updates per vendor instructions.
Jun 16, 2026 · Catalog
Updated
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.
Sources
- CISA KEVConfirmed exploitationCVE-2017-9841
PHPUnit 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.
cisa.gov - CVE.orgVulnerability recordCVE-2017-9841
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2017-9841
30-day exploitation probability 100.0%
first.org - Exploit DatabasePublic exploit reference50702
Public archive entry. The exploit body is not stored here.
exploit-db.com - NIST NVDVulnerability recordCVE-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
nvd.nist.gov - VulnCheck KEVConfirmed exploitationCVE-2017-9841
PHPUnit 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.
vulncheck.com
References
- Third Party Advisory · web.archive.org
- Broken Link · securityfocus.com
- Broken Link · securitytracker.com
- VulnCheck exploitation evidence · blogs.juniper.net
- Patch · github.com
- Patch · github.com
- VulnCheck exploitation evidence · go.catonetworks.com
- CISA note · nvd.nist.gov
- Third Party Advisory · security.gentoo.org
- VulnCheck exploitation evidence · unit42.paloaltonetworks.com
- VulnCheck exploitation evidence · bleepingcomputer.com
- VulnCheck exploitation evidence · imperva.com
- VulnCheck exploitation evidence · lacework.com
- Patch · oracle.com
Freshness
Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.