setup-php: Command Injection in Repository-Derived PHP Version Resolution
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| shivammathur | setup-php | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Shivammathur | Setup-php |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-pqwm-q9pv-ph8r | Setup PHP: Command Injection in Repository-Derived PHP Version Resolution |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: 2.0% (2.010% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Shivammathur setup Php
|
|
| CPEs | cpe:2.3:a:shivammathur:setup_php:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Shivammathur setup Php
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Shivammathur
Shivammathur setup-php |
|
| Vendors & Products |
Shivammathur
Shivammathur setup-php |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | setup-php: Command Injection in Repository-Derived PHP Version Resolution | |
| Weaknesses | CWE-78 | |
| References |
| |
| Metrics |
cvssV3_1
|