CVE-2026-46420PoC(shivammathur / setup_php)

LOWCVSS 9.8 · CRITICAL

Exploit discussion active in current signal (1 latest mentions)

Immediate actions

  • Prioritize remediation for shivammathur setup_php systems immediately
  • Hunt for exploitation attempts and persistence artifacts
  • Increase monitoring for publicly documented tradecraft
  • Track advisory updates for patch or workaround availability

Recommended action window: High priority (within 72h)

NVD 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.

3.5/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-78

Priority

LOW

Exploitation

NONE

PoC

YES

Patch

AVAILABLE

Momentum

NONE

Are you affected?

If you run products in this scope, you should treat this CVE as relevant to your environment.

  • setup_php

Threat summary

  • Public PoC and exploit tooling are both present
  • 1 mentions across 1 observed day

What's happening

  • Exploit tool or code specified in 1 signal
  • PoC mentioned or linked in 1 signal
  • Technical details provided in 1 signal
  • 1 total mentions across 1 day

Affected systems

Products
setup_php

Deep dive

Activity timeline1 mentions / 1d
00111Mentions · 2026-07-18: 1PoC Mentioned / Linked · 2026-07-18: 1Exploit Tool / Code · 2026-07-18: 1Technical Details · 2026-07-18: 107-18
Signal classification1 categories
PoC
1100.0%
Referenced assets1 URL
By indicator
Full discourse1 post
  • Joshua Builds@joshuabuilds_
    PoC

    GitHub - Jvr2022/CVE-2026-46420: Proof of Concept for CVE-2026-46420: Command Injection vulnerability in setup-php (versions >= 2.25.0, < 2.37.1). https://github.com/Jvr2022/CVE-2026-46420

    Post summary

    A GitHub repository offers a proof‑of‑concept and exploit code for CVE‑2026‑46420, a command injection flaw in setup‑php between versions 2.25.0 and 2.37.1, with no active exploitation or patch details cited.

    0001053
    1 followersView on X
CPE platform detail1 entries

1 of 1 entries

PartVendorProductVersionTarget SWTarget HW
Appshivammathursetup_php---

Explore more