# CVE-2026-41570: PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-18T00:59:28.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-qrr6-mg7r-m243
- Weaknesses: CWE-88, CWE-93
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- sebastianbergmann phpunit: = 12.5.21; = 13.1.5
- phpunit/phpunit (Packagist): from 12.5.21 before 12.5.22; from 13.1.5 before 13.1.6
- phpunit_project phpunit: 12.5.21; 13.1.5

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/sebastianbergmann/phpunit/pull/6592> (exploit, issue-tracking, patch, web)
- <https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243> (mitigation, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41570> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/phpunit/phpunit/CVE-2026-41570.yaml> (web)
- <https://github.com/sebastianbergmann/phpunit> (package)

## Sources

- CVE List: [CVE-2026-41570](https://www.cve.org/CVERecord?id=CVE-2026-41570), CVE Terms of Use, modified 2026-05-08
- GitHub Advisory Database: [GHSA-qrr6-mg7r-m243](https://github.com/advisories/GHSA-qrr6-mg7r-m243), CC-BY-4.0, modified 2026-05-12
- NVD: [CVE-2026-41570](https://nvd.nist.gov/vuln/detail/CVE-2026-41570), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41570 · Whole record: https://cve.day/CVE-2026-41570.json · Rebuilt by cve.day 2026-11-25T22:59:21.019Z
