CVE-2026-41570
CVE-2026-41570 · PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.8 · High · EPSS 0.2% · Fix available
- Published
- Updated
Affected products and versions
phpunit
- Versions
- = 12.5.21: Affected
- = 13.1.5: Affected
No fix published
phpunit/phpunit Packagist
- Versions
- 12.5.21
- Affected ranges
- ECOSYSTEM: ≥ 12.5.21, < 12.5.22
Update to 12.5.22
phpunit/phpunit Packagist
- Versions
- 13.1.5
- Affected ranges
- ECOSYSTEM: ≥ 13.1.5, < 13.1.6
Update to 13.1.6
phpunit Ubuntu:Pro:16.04:LTS
- Versions
- 4.7.6-1
- 4.8.16-1
- 5.1.3-1ubuntu1
- 5.1.3-1+build1
- 5.1.3-1+ubuntu1
- 5.1.3-1+ubuntu3
- 5.1.3-1+ubuntu3+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
phpunit Ubuntu:18.04:LTS
- Versions
- 5.4.6-2
- 5.4.6-3
- 6.5.5-1ubuntu2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
phpunit Ubuntu:20.04:LTS
- Versions
- 7.5.6-1
- 8.5.2-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
phpunit Ubuntu:22.04:LTS
- Versions
- 9.5.4-1
- 9.5.10-1ubuntu2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
phpunit Ubuntu:24.04:LTS
- Versions
- 9.6.10-1
- 9.6.13-1
- 9.6.15-1
- 9.6.16-1
- 9.6.17-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
phpunit Ubuntu:25.10
- Versions
- 11.5.3-1ubuntu4
- 11.5.19-1build4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
phpunit Ubuntu:26.10
- Versions
- 13.0.0-2ubuntu6
- 13.2.6+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
phpunit Ubuntu:26.04:LTS
- Versions
- 11.5.19-1build4
- 13.0.0-2ubuntu6
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published