CVE-2026-41570 json
PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes
published 6mo ago modified 14d ago also GHSA-qrr6-mg7r-m243 , EUVD-2026-28649
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 8%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist phpunit/phpunit 12.5.22, 13.1.6
Is CVE-2026-41570 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-41570 updated cvss 7.8
phpunit: argument injection via newline in PHP INI values forwarded to child processes
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 6mo ago
Exploit prediction
0.19% chance of exploitation in the next 30 days, higher than 8% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/sebastianbergmann/phpunit/pull/6592 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | phpunit/phpunit | >=12.5.21, <12.5.22 >=13.1.5, <13.1.6 |
12.5.22 13.1.6 |
Affected products
- sebastianbergmann phpunit
Classification
References
-
github.com
/sebastianbergmann/phpunit/pull/6592
exploit, web, issue-tracking, patch
-
github.com
/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243
web, mitigation, patch, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-41570
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/phpunit/phpunit/CVE-2026-41570.yaml
web
-
github.com
/sebastianbergmann/phpunit
package
Sources
- CVE List CVE-2026-41570
- GitHub Advisory GHSA-qrr6-mg7r-m243
- NVD CVE-2026-41570
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.