Home / sebastianbergmann / phpunit / CVE-2026-41570
CVE-2026-41570: is it exploited, and which versions of sebastianbergmann phpunit are affected and fixed?
CVE-2026-41570 is an improper Neutralization of CRLF Sequences vulnerability in sebastianbergmann phpunit. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: phpunit/phpunit from 12.5.21 before 12.5.22 and phpunit/phpunit from 13.1.5 before 13.1.6 (GitHub advisory GHSA-qrr6-mg7r-m243). Fixed in 12.5.22 and 13.1.6 (GitHub advisory GHSA-qrr6-mg7r-m243). Severity: High (7.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-41570?
PHPUnit: 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.
From the CVE record by GitHub_M, last updated May 8, 2026, 16:01 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| sebastianbergmann | phpunit | = 12.5.21 = 13.1.5 |
As the CVE record by GitHub_M states it, last updated May 8, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | phpunit/phpunit | >= 12.5.21, < 12.5.22 | 12.5.22 | GHSA-qrr6-mg7r-m243 |
| Packagist | phpunit/phpunit | >= 13.1.5, < 13.1.6 | 13.1.6 | GHSA-qrr6-mg7r-m243 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 12, 2026. Summary: PHPUnit has Argument injection via newline in PHP INI values that are forwarded to child processes.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| phpunit project | phpunit | 12.5.21 | application |
| phpunit project | phpunit | 13.1.5 | application |
NVD analysis (status Analyzed), last modified October 26, 2026, 18:10 UTC.
How severe is CVE-2026-41570?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-41570 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, May 8, 2026)
- EPSS
- 0.19% probability of exploitation activity in the next 30 days, percentile 9.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-93 Improper Neutralization of CRLF Sequences
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
Where are the vendor advisories and references?
- https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243 x_refsource_CONFIRM
- https://github.com/sebastianbergmann/phpunit/pull/6592 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 21, 2026
- Published
- May 8, 2026, 14:33 UTC
- CVE record updated
- May 8, 2026, 16:01 UTC by GitHub_M
- NVD
- Analyzed, last modified October 26, 2026, 18:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect phpunit?
- Oct 29, 2026CVE-2026-119193 sebastianbergmann phpunit: creation of Temporary File in Directory with Insecure Permissions
- Jan 27, 2026CVE-2026-24765 sebastianbergmann phpunit: deserialization of untrusted data
Questions about CVE-2026-41570
Is CVE-2026-41570 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 0.19% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of sebastianbergmann phpunit are affected by CVE-2026-41570?
phpunit/phpunit from 12.5.21 before 12.5.22 and phpunit/phpunit from 13.1.5 before 13.1.6, per the GitHub advisory GHSA-qrr6-mg7r-m243. The tables above give every range the sources list.
Which version fixes CVE-2026-41570?
12.5.22 and 13.1.6, per the GitHub advisory GHSA-qrr6-mg7r-m243. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-41570?
High (7.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-41570?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.