CVE-2017-9841
NVDCVSS scored by NVD (NIST)
Vulnerability Summary
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.
CVSS v3.1 Base Metrics — Score 9.8 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Phpunit Project Phpunit <= 4.8.27
- Phpunit Project Phpunit >= 5.0.0 and < 5.6.3
- Oracle Communications Diameter Signaling Router >= 8.0.0 and <= 8.5.0
- Phpunit Project Phpunit 5.6.3
What to do
Patch now. CISA lists this flaw as exploited in the wild and set a federal remediation deadline of Aug 15, 2022.
- Check whether you run Phpunit Project Phpunit and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
CISA required action: Apply updates per vendor instructions.
CISA KEV Status
Listed in Known Exploited Vulnerabilities
Added: Feb 15, 2022
Remediation due: Aug 15, 2022 (deadline passed)
Remediation due: Aug 15, 2022 (deadline passed)
Timeline
- Jun 27, 2017Published
- Feb 15, 2022Added to CISA KEV catalog
- Aug 15, 2022KEV remediation due date
- Apr 21, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Phpunit Project Phpunit CVEsYou are reading CVE-2017-9841. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Advisoryhttp://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/
- Advisoryhttp://www.securityfocus.com/bid/101798
- Referencehttp://www.securitytracker.com/id/1039812
- Patchhttps://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5
- Patchhttps://github.com/sebastianbergmann/phpunit/pull/1956
- Advisoryhttps://security.gentoo.org/glsa/201711-15
- Patchhttps://www.oracle.com/security-alerts/cpuoct2021.html
- Advisoryhttp://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/
- Advisoryhttp://www.securityfocus.com/bid/101798
- Referencehttp://www.securitytracker.com/id/1039812
- Patchhttps://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5
- Patchhttps://github.com/sebastianbergmann/phpunit/pull/1956
- Advisoryhttps://security.gentoo.org/glsa/201711-15
- Patchhttps://www.oracle.com/security-alerts/cpuoct2021.html
- Advisoryhttps://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841
Data last checked: Dec 4, 2026 21:38 UTC