{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2017-9841","published":"2017-06-27T17:29:00.177000Z","last_modified":"2026-06-17T01:29:01.517000Z","status":"Analyzed","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","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:*","part":"a","vendor":"phpunit_project","product":"phpunit","version_end_including":"4.8.27"},{"criteria":"cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:*","part":"a","vendor":"phpunit_project","product":"phpunit","version_start_including":"5.0.0","version_end_excluding":"5.6.3"},{"criteria":"cpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:*","part":"a","vendor":"oracle","product":"communications_diameter_signaling_router","version_start_including":"8.0.0","version_end_including":"8.5.0"}],"cpes_truncated":false,"vendors":["phpunit_project","oracle"],"products":["phpunit_project/phpunit","oracle/communications_diameter_signaling_router"],"ssvc":{"exploitation":"active","automatable":"yes","technical_impact":"total"},"kev":{"date_added":"2022-02-15","due_date":"2022-08-15","ransomware":false,"forensic_triage":false,"cwes":["CWE-94"]},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-r7c9-c69m-rph8","ecosystem":"Packagist","name":"phpunit/phpunit","purl":"pkg:composer/phpunit/phpunit","ranges":[{"introduced":"4.8.19","fixed":"4.8.28"}],"versions":["4.8.19","4.8.20","4.8.21","4.8.22","4.8.23","4.8.24","4.8.25","4.8.26","4.8.27"],"versions_truncated":false},{"advisory":"GHSA-r7c9-c69m-rph8","ecosystem":"Packagist","name":"phpunit/phpunit","purl":"pkg:composer/phpunit/phpunit","ranges":[{"introduced":"5.0.10","fixed":"5.6.3"}],"versions":["5.0.10","5.1.0","5.1.1","5.1.2","5.1.3","5.1.4","5.1.5","5.1.6","5.1.7","5.2.0","5.2.1","5.2.10","5.2.11","5.2.12","5.2.2","5.2.3","5.2.4","5.2.5","5.2.6","5.2.7","5.2.8","5.2.9","5.3.0","5.3.1","5.3.2","5.3.3","5.3.4","5.3.5","5.4.0","5.4.1","5.4.2","5.4.3","5.4.4","5.4.5","5.4.6","5.4.7","5.4.8","5.5.0","5.5.1","5.5.2","5.5.3","5.5.4","5.5.5","5.5.6","5.5.7","5.6.0","5.6.1","5.6.2"],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2017-9841/","html_en":"/en/cve/CVE-2017-9841/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-9841","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-9841"},"untrusted":{"vendor_name":"PHPUnit","product_name":"PHPUnit","desc_en":"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.","affected":[],"kev":{"vendor":"PHPUnit","product":"PHPUnit","name":"PHPUnit Command Injection Vulnerability","desc":"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.","action":"Apply updates per vendor instructions.","notes":"https://nvd.nist.gov/vuln/detail/CVE-2017-9841"},"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"cafdc41abd2dc40471ec673ff1ef890c","generated":"2026-11-26T23:36:58.597725Z","es":{"untrusted_title":"Ejecución remota de código en PHPUnit por eval-stdin.php expuesto","untrusted_summary":"PHPUnit antes de versión 4.8.28 y 5.x antes de 5.6.3 permite a atacantes remotos ejecutar código PHP arbitrario mediante datos POST HTTP que comienzan con \"<?php \". La vulnerabilidad se explota cuando la carpeta /vendor está expuesta públicamente. CISA ha confirmado que esta vulnerabilidad está siendo explotada activamente."},"en":{"untrusted_title":"Remote Code Execution in PHPUnit via Exposed eval-stdin.php","untrusted_summary":"PHPUnit before version 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with \"<?php \". The vulnerability is exploited when the /vendor folder is publicly exposed. CISA has confirmed active exploitation of this vulnerability."},"remediation":{"status":"fix","fixed_versions":["4.8.28","5.6.3"],"untrusted_action_es":"Actualiza PHPUnit a versión 4.8.28 o posterior (rama 4.x) o 5.6.3 o posterior (rama 5.x). Asegúrate de que la carpeta /vendor no sea accesible públicamente.","untrusted_action_en":"Update PHPUnit to version 4.8.28 or later (4.x branch) or 5.6.3 or later (5.x branch). Ensure the /vendor folder is not publicly accessible.","vendor_url":"https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5"},"reviewed":false},"references":[{"url":"http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/","tags":["Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/101798","tags":["Broken Link"]},{"url":"http://www.securitytracker.com/id/1039812","tags":["Broken Link"]},{"url":"https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/sebastianbergmann/phpunit/pull/1956","tags":["Patch","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201711-15","tags":["Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["Patch","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841","tags":["US Government Resource"]}]}}