CVEfocus › CVE database › CVE-2026-41570

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

CVSS 7.8 HighEPSS 0.3% (higher than 13% of CVEs)Published 2026-05-08Updated 2026-05-08Assigner: GitHub_M

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.

CWE-88CWE-93

What to do

Fixed builds are available from Packagist: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
4Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10phpunitFix pendingUBUNTU-CVE-2026-41570
Ubuntu 26.04phpunitUnder investigationUBUNTU-CVE-2026-41570
Ubuntu 25.10phpunitWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-41570
Ubuntu 24.04phpunitUnder investigationUBUNTU-CVE-2026-41570
Ubuntu 22.04phpunitUnder investigationUBUNTU-CVE-2026-41570
Ubuntu 20.04phpunitFix pendingUBUNTU-CVE-2026-41570
Ubuntu 18.04phpunitFix pendingUBUNTU-CVE-2026-41570
Ubuntu 16.04phpunitFix pendingUBUNTU-CVE-2026-41570
Packagist libraryphpunit/phpunitFixed13.1.6GHSA-qrr6-mg7r-m243

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.