{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-46420","published":"2026-07-17T20:17:18.567000Z","last_modified":"2026-10-24T20:10:00.137000Z","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-78"],"cpes":[{"criteria":"cpe:2.3:a:shivammathur:setup_php:*:*:*:*:*:*:*:*","part":"a","vendor":"shivammathur","product":"setup_php","version_start_including":"2.25.0","version_end_excluding":"2.37.1"}],"cpes_truncated":false,"vendors":["shivammathur"],"products":["shivammathur/setup_php"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-pqwm-q9pv-ph8r","ecosystem":"GitHub Actions","name":"shivammathur/setup-php","ranges":[{"introduced":"2.25.0","fixed":"2.37.1"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2026-46420/","html_en":"/en/cve/CVE-2026-46420/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-46420","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-46420"},"untrusted":{"vendor_name":"Shivammathur","product_name":"Setup Php","desc_en":"setup-php is a GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and tools. From 2.25.0 prior to 2.37.1, shivammathur/setup-php resolves the PHP version from repository-controlled files such as .php-version, composer.lock through platform-overrides.php, and composer.json through config.platform.php, and insufficiently constrains those values before incorporating them into generated shell or PowerShell setup scripts, allowing command injection on a GitHub Actions runner when workflows such as pull_request_target check out attacker-controlled contents before invoking setup-php. This issue is fixed in version 2.37.1.","affected":[{"untrusted_vendor":"shivammathur","untrusted_product":"setup-php","versions":[]}],"references":[{"url":"https://github.com/shivammathur/setup-php/commit/eeef37e059fb5368a5bc8ed8ce45ff54bd39b80b","tags":["Patch"]},{"url":"https://github.com/shivammathur/setup-php/releases/tag/2.37.1","tags":["Product","Release Notes"]},{"url":"https://github.com/shivammathur/setup-php/security/advisories/GHSA-pqwm-q9pv-ph8r","tags":["Patch","Vendor Advisory"]}]}}