{"description":"Trending threats, MITRE ATT\u0026CK coverage, and detection metadata. Fed continuously.","favicon":"https://feed.craftedsignal.io/favicon-32x32.png","feed_url":"https://feed.craftedsignal.io/cpes/cpe2.3ashivammathursetup_php/feed.json","home_page_url":"https://feed.craftedsignal.io/","icon":"https://feed.craftedsignal.io/apple-touch-icon.png","items":[{"_cs_actors":[],"_cs_cpes":["cpe:2.3:a:shivammathur:setup-php:*:*:*:*:*:*:*:*","cpe:2.3:a:shivammathur:setup_php:*:*:*:*:*:*:*:*"],"_cs_cves":[{"cvss":5.6,"id":"CVE-2026-46420"}],"_cs_exploited":false,"_cs_has_poc":true,"_cs_poc_references":["https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-JVR2022-CVE-2026-46420\u0026utm_source=rss\u0026utm_medium=rss"],"_cs_products":["setup-php"],"_cs_severities":["high"],"_cs_tags":["ci-cd","cve","command-injection"],"_cs_type":"advisory","_cs_vendors":["Shivammathur"],"content_html":"\u003ch2 id=\"overview\"\u003eOverview\u003c/h2\u003e\n\u003cp\u003eShivammathur/setup-php versions 2.25.0 through 2.37.0 are vulnerable to command injection (CVE-2026-46420). The GitHub Action, used to configure PHP environments, insecurely processes PHP version constraints defined in repository-controlled files such as .php-version, composer.lock, and composer.json. An attacker can supply a malicious PHP version string containing shell metacharacters, which the action subsequently incorporates into generated shell or PowerShell setup scripts. Execution occurs within the context of the GitHub Actions runner.\u003c/p\u003e\n\u003ch2 id=\"attack-chain\"\u003eAttack Chain\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eAn attacker identifies a target repository using the shivammathur/setup-php GitHub Action.\u003c/li\u003e\n\u003cli\u003eThe attacker creates a pull request from a controlled branch to the target repository.\u003c/li\u003e\n\u003cli\u003eThe attacker modifies the repository's composer.json to include a malicious PHP version string containing shell metacharacters (e.g., \u0026quot;8.2;\u0026lt;COMMAND\u0026gt; #\u0026quot;).\u003c/li\u003e\n\u003cli\u003eThe target repository's CI/CD pipeline triggers, running a workflow that invokes setup-php with the attacker-controlled input.\u003c/li\u003e\n\u003cli\u003esetup-php reads and insufficiently sanitizes the malicious version string.\u003c/li\u003e\n\u003cli\u003eThe action executes the embedded shell command on the GitHub Actions runner.\u003c/li\u003e\n\u003cli\u003eThe attacker-supplied command executes with the privileges of the runner process.\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch2 id=\"recommendation\"\u003eRecommendation\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003eUpgrade shivammathur/setup-php to version 2.37.1 or later immediately.\u003c/li\u003e\n\u003cli\u003eReview workflows utilizing pull_request_target triggers, as these are primary vectors for injecting malicious code into CI/CD environments.\u003c/li\u003e\n\u003cli\u003eAudit repository configuration files (composer.json, .php-version, composer.lock) for unexpected changes in pull requests.\u003c/li\u003e\n\u003c/ul\u003e\n","date_modified":"2026-11-17T14:12:57Z","date_published":"2026-11-17T14:12:57Z","id":"https://feed.craftedsignal.io/briefs/2026-11-setup-php-command-injection-cve-2026-46420/","summary":"The shivammathur/setup-php GitHub Action is vulnerable to command injection when processing PHP version strings from repository-controlled files like composer.json, allowing attackers to achieve arbitrary code execution in CI/CD environments.","title":"Shivammathur setup-php: Command injection via repository configuration (CVE-2026-46420)","url":"https://feed.craftedsignal.io/briefs/2026-11-setup-php-command-injection-cve-2026-46420/"}],"language":"en","title":"CraftedSignal Threat Feed - Cpe:2.3:a:shivammathur:setup_php:*:*:*:*:*:*:*:*","version":"https://jsonfeed.org/version/1.1"}