{"cve":{"cve_id":"CVE-2017-9841","is_kev":true,"kev_date_added":"2022-02-15","kev_vendor_project":"PHPUnit","kev_product":"PHPUnit","kev_vulnerability_name":"PHPUnit Command Injection Vulnerability","kev_short_description":"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.","kev_required_action":"Apply updates per vendor instructions.","kev_due_date":"2022-08-15","kev_known_ransomware":false,"kev_notes":"https://nvd.nist.gov/vuln/detail/CVE-2017-9841","kev_cwes":["CWE-94"],"epss_score":0.99999,"epss_percentile":0.99994,"epss_as_of":"2026-06-23","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_at":"2017-06-27T17:00:00Z","last_modified_at":null,"cvss_v3_score":9.8,"cvss_v3_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_v3_severity":"CRITICAL","cvss_v4_score":null,"cvss_v4_vector":null,"cvss_v4_severity":null,"ssvc_decision":null,"ssvc_exploitation":"active","ssvc_automatable":true,"ssvc_technical_impact":"total","cwes":["CWE-94"],"nvd_references":["http://www.securityfocus.com/bid/101798","http://www.securitytracker.com/id/1039812","https://security.gentoo.org/glsa/201711-15","https://www.oracle.com/security-alerts/cpuoct2021.html","https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5","https://github.com/sebastianbergmann/phpunit/pull/1956","http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/"],"vuln_status":null,"trending_score":0.6099982,"is_trending":true,"has_trended":true,"trended_number_one":false,"trending_peak_score":0.6099982,"trending_peak_rank":37,"started_trending_at":"2026-06-29T02:30:27.366045Z","trended_number_one_at":null,"summary_generated":null,"summary_generated_at":null,"summary_model":null,"created_at":"2026-06-24T00:09:31.350578Z","updated_at":"2026-06-29T02:30:27.550645Z"},"effective_severity":"CRITICAL","badges":["kev","poc","trending","epss"],"impact_analysis":[],"cvss_v3_decoded":{"version":"3.1","metrics":[{"metric":"AV","name":"Attack Vector","value":"N","value_label":"Network"},{"metric":"AC","name":"Attack Complexity","value":"L","value_label":"Low"},{"metric":"PR","name":"Privileges Required","value":"N","value_label":"None"},{"metric":"UI","name":"User Interaction","value":"N","value_label":"None"},{"metric":"S","name":"Scope","value":"U","value_label":"Unchanged"},{"metric":"C","name":"Confidentiality","value":"H","value_label":"High"},{"metric":"I","name":"Integrity","value":"H","value_label":"High"},{"metric":"A","name":"Availability","value":"H","value_label":"High"}]},"cvss_v4_decoded":{"version":null,"metrics":[]},"affected":[],"exploit_refs":[{"source":"nuclei","kind":"nuclei","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-9841.yaml","title":"PHPUnit - Remote Code Execution","author":"Random_Robbie,pikpikcu","disclosed_at":null}],"news":[],"references":[{"url":"http://www.securityfocus.com/bid/101798","source_type":"MISC","tags":[]},{"url":"http://www.securitytracker.com/id/1039812","source_type":"MISC","tags":[]},{"url":"https://security.gentoo.org/glsa/201711-15","source_type":"MISC","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","source_type":"VENDOR_ADVISORY","tags":["advisory"]},{"url":"https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5","source_type":"PATCH","tags":["patch"]},{"url":"https://github.com/sebastianbergmann/phpunit/pull/1956","source_type":"PATCH","tags":["patch"]},{"url":"http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/","source_type":"MISC","tags":[]}],"timeline":[{"type":"published","at":"2017-06-27T17:00:00Z","label":"CVE published","source":null},{"type":"cisa_reported","at":"2022-02-15T00:00:00Z","label":"Added to CISA KEV catalog","source":"kev"},{"type":"poc_available","at":"2026-06-24T00:29:48.638073Z","label":"Public PoC available","source":"nuclei"},{"type":"ssvc_changed","at":"2026-06-24T00:31:10.389451Z","label":"SSVC decision revised","source":"vulnrichment"},{"type":"ssvc_changed","at":"2026-06-24T00:31:10.389451Z","label":"SSVC decision revised","source":"vulnrichment"},{"type":"ssvc_changed","at":"2026-06-24T00:31:10.389451Z","label":"SSVC decision revised","source":"vulnrichment"},{"type":"cvss_changed","at":"2026-06-24T00:31:10.389451Z","label":"CVSS score revised","source":"vulnrichment"},{"type":"cvss_changed","at":"2026-06-24T00:31:10.389451Z","label":"CVSS score revised","source":"vulnrichment"},{"type":"cvss_changed","at":"2026-06-24T00:31:10.389451Z","label":"CVSS score revised","source":"vulnrichment"},{"type":"started_trending","at":"2026-06-29T02:30:27.366045Z","label":"Started trending","source":null}]}