CVE-2026-46420
Last modified
CVE-2026-46420 is a medium-severity vulnerability rated 5.6/10 on the CVSS scale. 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. EPSS estimates a 0.85% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| shivammathur | setup-php | >= 2.25.0, < 2.37.1 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-46420?
How severe is CVE-2026-46420?
How do I fix CVE-2026-46420?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-46413Discourse is an open-source discussion platform. Prior to 20…6.5
- CVE-2026-46414Microsoft UFO open-source framework for intelligent automati…8.8
- CVE-2026-46415The Caddy Defender plugin is a middleware for Caddy that all…8.2
- CVE-2026-46416Microsoft UFO open-source framework for intelligent automati…6.3
- CVE-2026-46417Angular is a development platform for building mobile and de…6.1
- CVE-2026-46419Yubico webauthn-server-core (aka java-webauthn-server) 2.8.0…7.5
- CVE-2026-46421The SAP Cloud Application Programming Model is a tool for bu…9.3
- CVE-2026-46423Rocket.Chat is an open-source, secure, fully customizable co…9.3
- CVE-2026-46424Budibase is an open-source low-code platform. Prior to 3.38.…4.2
- CVE-2026-46425Budibase is an open-source low-code platform. Prior to 3.38.…9.9
- CVE-2026-46426Budibase is an open-source low-code platform. Prior to 3.38.…7.6
- CVE-2026-46427Budibase is an open-source low-code platform. Prior to 3.38.…7.7
Are you affected by CVE-2026-46420?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
