CVE Explorer
CVE-2026-46420
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 Actio
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"setup-php","vendor":"shivammathur","versions":[{"status":"affected","version":">= 2.25.0, < 2.37.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:3d4e52eaa57072e02ba75e667121657d9d7e69313558fb37c157229138947b7b · sha256:beea3f233047c271… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.6,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:3d4e52eaa57072e02ba75e667121657d9d7e69313558fb37c157229138947b7b · sha256:beea3f233047c271… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-78","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:3d4e52eaa57072e02ba75e667121657d9d7e69313558fb37c157229138947b7b · sha256:beea3f233047c271… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/shivammathur/setup-php/commit/eeef37e059fb5368a5bc8ed8ce45ff54bd39b80b","tags":["x_refsource_MISC"],"url":"https://github.com/shivammathur/setup-php/commit/eeef37e059fb5368a5bc8ed8ce45ff54bd39b80b"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:3d4e52eaa57072e02ba75e667121657d9d7e69313558fb37c157229138947b7b · sha256:beea3f233047c271… · /containers/cna/references/1
{"name":"https://github.com/shivammathur/setup-php/releases/tag/2.37.1","tags":["x_refsource_MISC"],"url":"https://github.com/shivammathur/setup-php/releases/tag/2.37.1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:3d4e52eaa57072e02ba75e667121657d9d7e69313558fb37c157229138947b7b · sha256:beea3f233047c271… · /containers/cna/references/2
{"name":"https://github.com/shivammathur/setup-php/security/advisories/GHSA-pqwm-q9pv-ph8r","tags":["x_refsource_CONFIRM"],"url":"https://github.com/shivammathur/setup-php/security/advisories/GHSA-pqwm-q9pv-ph8r"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:3d4e52eaa57072e02ba75e667121657d9d7e69313558fb37c157229138947b7b · sha256:beea3f233047c271… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.