CVE-2017-9841
Last modified
CVE-2017-9841 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. CISA has confirmed active exploitation in the wild.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploitation Status
This vulnerability is listed in CISA’s Known Exploited Vulnerabilities catalog, confirming active exploitation in the wild. Federal agencies must remediate by .
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Phpunit Project | Phpunit | <= 4.8.27 |
| Phpunit Project | Phpunit | >= 5.0.0, < 5.6.3 |
| Oracle | Communications Diameter Signaling Router | >= 8.0.0, <= 8.5.0 |
References
- http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/Third Party Advisory
- http://www.securityfocus.com/bid/101798Broken Link
- http://www.securitytracker.com/id/1039812Broken Link
- https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5Patch, Third Party Advisory
- https://github.com/sebastianbergmann/phpunit/pull/1956Patch, Third Party Advisory
- https://security.gentoo.org/glsa/201711-15Third Party Advisory
- https://www.oracle.com/security-alerts/cpuoct2021.htmlPatch, Third Party Advisory
- http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/Third Party Advisory
- http://www.securityfocus.com/bid/101798Broken Link
- http://www.securitytracker.com/id/1039812Broken Link
- https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5Patch, Third Party Advisory
- https://github.com/sebastianbergmann/phpunit/pull/1956Patch, Third Party Advisory
- https://security.gentoo.org/glsa/201711-15Third Party Advisory
- https://www.oracle.com/security-alerts/cpuoct2021.htmlPatch, Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841US Government Resource
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2017-9841?
How severe is CVE-2017-9841?
How do I fix CVE-2017-9841?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2017
- CVE-2017-9835The gs_alloc_ref_array function in psi/ialloc.c in Artifex G…
- CVE-2017-9836Cross-site scripting (XSS) vulnerability in Piwigo 2.9.1 all…
- CVE-2017-9837Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultI…
- CVE-2017-9838Dolibarr ERP/CRM is affected by multiple reflected Cross-Sit…
- CVE-2017-9839Dolibarr ERP/CRM is affected by SQL injection in versions be…
- CVE-2017-9840Dolibarr ERP/CRM 5.0.3 and prior allows low-privilege users …
- CVE-2017-9843SAP NetWeaver AS ABAP 7.40 allows remote authenticated users…2.7
- CVE-2017-9844SAP NetWeaver 7400.12.21.30308 allows remote attackers to ca…7.5
- CVE-2017-9845disp+work 7400.12.21.30308 in SAP NetWeaver 7.40 allows remo…
- CVE-2017-9846Winmail Server 6.1 allows remote code execution by authentic…8.8
- CVE-2017-9847The bdecode function in bdecode.cpp in libtorrent 1.1.3 allo…
- CVE-2017-9848SQL injection vulnerability in C_InfoService.asmx in WebServ…
Are you affected by CVE-2017-9841?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
