Back to list

PHPUnit has Argument injection via newline in PHP INI values that are forwarded to child processes — CVE-2026-41570

GitHub · GitHub · CVE-2026-41570

ID
CVE-2026-41570
Date
Updated
Activity
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
7.8
EPSS
0.00067

Summary

## Impact PHPUnit forwards PHP INI settings to child processes (used for isolated/PHPT test execution) as `-d name=value` command-line arguments without neutralizing INI metacharacters. Because PHP's INI parser interprets `"` as a string delimiter, `;` as the start of a comment, and most importantly a newline as a directive separator, a value containing a newline is parsed by the child process as multiple INI…

Product

composer: phpunit/phpunit

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories