<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cpe:2.3:a:shivammathur:setup-Php:*:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3ashivammathursetup-php/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 17 Nov 2026 14:12:57 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3ashivammathursetup-php/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Shivammathur setup-php: Command injection via repository configuration (CVE-2026-46420)</title><link>https://feed.craftedsignal.io/briefs/2026-11-setup-php-command-injection-cve-2026-46420/</link><pubDate>Tue, 17 Nov 2026 14:12:57 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-11-setup-php-command-injection-cve-2026-46420/</guid><description>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.</description><content:encoded><![CDATA[<h2 id="overview">Overview</h2>
<p>Shivammathur/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.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker identifies a target repository using the shivammathur/setup-php GitHub Action.</li>
<li>The attacker creates a pull request from a controlled branch to the target repository.</li>
<li>The attacker modifies the repository's composer.json to include a malicious PHP version string containing shell metacharacters (e.g., &quot;8.2;&lt;COMMAND&gt; #&quot;).</li>
<li>The target repository's CI/CD pipeline triggers, running a workflow that invokes setup-php with the attacker-controlled input.</li>
<li>setup-php reads and insufficiently sanitizes the malicious version string.</li>
<li>The action executes the embedded shell command on the GitHub Actions runner.</li>
<li>The attacker-supplied command executes with the privileges of the runner process.</li>
</ol>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade shivammathur/setup-php to version 2.37.1 or later immediately.</li>
<li>Review workflows utilizing pull_request_target triggers, as these are primary vectors for injecting malicious code into CI/CD environments.</li>
<li>Audit repository configuration files (composer.json, .php-version, composer.lock) for unexpected changes in pull requests.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>ci-cd</category><category>cve</category><category>command-injection</category></item></channel></rss>