Read the docs
TI-2026-30125 Aliases CVE-2026-41570GHSA-qrr6-mg7r-m243

PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes

Priority HIGH 69CWE-88Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-88.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00191 8th percentileScored 2026-11-07
Fix Fixed phpunit/phpunit (Packagist): 12.5.22, 13.1.6

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
sebastianbergmannphpunit= 12.5.21; = 13.1.5—No fix listedCNA
—phpunit/phpunit (Packagist)12.5.21 to before 12.5.2212.5.22Patch availableGHSA-qrr6-mg7r-m243
—phpunit/phpunit (Packagist)13.1.5 to before 13.1.613.1.6Patch availableGHSA-qrr6-mg7r-m243
  • phpunit Vendorsebastianbergmann Affected = 12.5.21; = 13.1.5 Fixed in — No fix listed CNA
  • phpunit/phpunit (Packagist) Vendor— Affected 12.5.21 to before 12.5.22 Fixed in 12.5.22 Patch available GHSA-qrr6-mg7r-m243
  • phpunit/phpunit (Packagist) Vendor— Affected 13.1.5 to before 13.1.6 Fixed in 13.1.6 Patch available GHSA-qrr6-mg7r-m243

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:phpunit_project:phpunit:12.5.21:*:*:*:*:-:*:*12.5.21VulnerablePhpunit Project
cpe:2.3:a:phpunit_project:phpunit:13.1.5:*:*:*:*:-:*:*13.1.5VulnerablePhpunit Project
  • cpe:2.3:a:phpunit_project:phpunit:12.5.21:*:*:*:*:-:*:* Versions 12.5.21 Vulnerable ·Phpunit Project
  • cpe:2.3:a:phpunit_project:phpunit:13.1.5:*:*:*:*:-:*:* Versions 13.1.5 Vulnerable ·Phpunit Project

Remediation

  • Fix · GHSA-qrr6-mg7r-m243 phpunit/phpunit (Packagist) Fixed in 12.5.22 Advisory →
  • Fix · GHSA-qrr6-mg7r-m243 phpunit/phpunit (Packagist) Fixed in 13.1.6 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-41570
  2. 2026-10-03 Alias added: GHSA-qrr6-mg7r-m243

References

  • TI-2026-82740 Insecure temporary directory in PHPUnit allows local code execution CVSS 4.0MEDIUM 5.4

Sources