{"id":"CVE-2017-9841","url":"https://www.cyber-defence.io/tools/cve/CVE-2017-9841","generatedAt":"2026-10-28T20:47:45.444Z","title":"PHPUnit Command Injection Vulnerability","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.","published":"2017-06-27T17:29:00.000Z","lastModified":"2026-06-17T01:29:02.000Z","status":"Analyzed","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-94"],"affected":["phpunit project/phpunit","oracle/communications diameter signaling router"],"epss":{"score":0.99999,"percentile":0.99994,"date":"2026-10-27","history":[]},"kev":{"listed":true,"dateAdded":"2022-02-15","dueDate":"2022-08-15","knownRansomwareCampaignUse":"Unknown","notes":"Apply updates per vendor instructions.\nhttps://nvd.nist.gov/vuln/detail/CVE-2017-9841"},"exploits":{"count":1,"verified":false,"firstPublished":"2022-02-02","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":50702,"kind":"exploit","title":"PHP Unit 4.8.28 - Remote Code Execution (RCE) (Unauthenticated)","url":"https://www.exploit-db.com/exploits/50702","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/50702.py","file":"exploits/php/webapps/50702.py","published":"2022-02-02","added":"2022-02-02","updated":"2022-02-02","author":"souzo","type":"webapps","platform":"php","port":null,"verified":false,"codes":["CVE-2017-9841"],"tags":null,"aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":null}]},"verdict":{"level":"urgent","text":"Known to be exploited in the wild (CISA KEV, CISA remediation deadline 15 August 2022). Treat as an emergency change: patch or isolate now, then hunt for prior compromise."},"changes":[],"references":[{"url":"http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/101798","tags":["Broken Link"],"source":"cve@mitre.org"},{"url":"http://www.securitytracker.com/id/1039812","tags":["Broken Link"],"source":"cve@mitre.org"},{"url":"https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5","tags":["Patch","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://github.com/sebastianbergmann/phpunit/pull/1956","tags":["Patch","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/201711-15","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["Patch","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/101798","tags":["Broken Link"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id/1039812","tags":["Broken Link"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5","tags":["Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/sebastianbergmann/phpunit/pull/1956","tags":["Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/201711-15","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841","tags":["US Government Resource"],"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-9841","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}