CVE-2026-41570
published high CVSS 3.1 · 7.8PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sebastianbergmann | — | phpunit= 12.5.21 · = 13.1.5 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sebastianbergmann | phpunit | = 12.5.21 (affected)= 13.1.5 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-93 CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')
- CWE-88 CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
2Provider assertions
2GitHub_M · cna
PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 34cfa712f79a14ce6139842340cb65c474e45eaf21ef04356be572a4fc8f5029
- Ingested
- 23 Sep 2026, 09:13:40 UTC
- Source record
- Official CVE record