CVE-2026-46420
A public proof of concept exists; no exploitation attested.
- Published2026-07-17
- Fixed in2.37.1
- WeaknessCWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2026-07-1720:17CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-10-23 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2026-46420?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2026-46420?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.x | ≥ 2.25.0, < 2.37.1 | 2.37.1 | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Fix
- Update Shivammathur setup php to 2.37.1
Advisories and patches
- github.comPatch
- github.comRelease Notes
- github.comPatch · Vendor Advisory
Detection
read 2026-10-23 19:25 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
Sources
- CISA-ADPSSVC decisionnone2026-07-20
- OpenCVESSVC decisionnone—
- CNACVSS 3.15.6read 2026-10-23
- NVDCVSS 3.19.8read 2026-10-23
- CNAweakness (CWE)CWE-78read 2026-10-23
- FIRST EPSSEPSS score2.0 %2026-10-23
- PoC-in-GitHubproof of concept1read 2026-10-23
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2026-07-17
- Last Modified
- 2026-08-18
- NVD status
- Analyzed
Frequently asked questions
What is CVE-2026-46420?
Is CVE-2026-46420 actively exploited?
What is the CVSS score for CVE-2026-46420?
Hear about the next vulnerability in your software
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2026-55040KEVsame week
- CVE-2026-9198KEVsame weekUnauthenticated Remote Code Execution via Auto-Login Bypass and Code Validation
- CVE-2026-9586KEVsame weekUnauthenticated SQL Injection Leading to Remote Code Execution in Switchvox SMB
- CVE-2026-58644KEVsame week
- CVE-2026-15410KEVsame week
- CVE-2026-63030KEVsame week
- CVE-2026-15409KEVsame week
- CVE-2026-60137KEVsame week