CVE-2026-41570PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes
PHPUnit is a testing framework for PHP. In versions 12.5.21 and 13.1.5, 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 directives. An attacker able to influence a single INI value can therefore inject arbitrary additional directives into the child's configuration, including auto_prepend_file, extension, disable_functions, open_basedir, and others. Setting auto_prepend_file to an attacker-controlled path yields remote code execution in the child process. This issue has been patched in versions 12.5.22 and 13.1.6.
What to do
Fixed builds are available from Packagist: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | phpunit | Fix pending | UBUNTU-CVE-2026-41570 | |
| Ubuntu 26.04 | phpunit | Under investigation | UBUNTU-CVE-2026-41570 | |
| Ubuntu 25.10 | phpunit | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-41570 | |
| Ubuntu 24.04 | phpunit | Under investigation | UBUNTU-CVE-2026-41570 | |
| Ubuntu 22.04 | phpunit | Under investigation | UBUNTU-CVE-2026-41570 | |
| Ubuntu 20.04 | phpunit | Fix pending | UBUNTU-CVE-2026-41570 | |
| Ubuntu 18.04 | phpunit | Fix pending | UBUNTU-CVE-2026-41570 | |
| Ubuntu 16.04 | phpunit | Fix pending | UBUNTU-CVE-2026-41570 | |
| Packagist library | phpunit/phpunit | Fixed | 13.1.6 | GHSA-qrr6-mg7r-m243 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- sebastianbergmann phpunit: affected: = 12.5.21, = 13.1.5
References
- https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243
- https://github.com/sebastianbergmann/phpunit/pull/6592
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.