{"id":"CVE-2026-41570","published":"2026-05-08T14:33:51Z","modified":"2026-05-08T16:01:51Z","title":"PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes","vendor":"sebastianbergmann","product":"phpunit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00191,"percentile":0.08951,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"},{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sebastianbergmann/phpunit/pull/6592","tags":["x_refsource_MISC"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":1.79},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"sebastianbergmann","affectedVersions":[{"vendor":"sebastianbergmann","product":"phpunit","versions":["= 12.5.21","= 13.1.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-08T16:01:31.346640Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpunit/phpunit","vulnerableRanges":[">=12.5.21, <12.5.22",">=13.1.5, <13.1.6"],"patched":["12.5.22","13.1.6"],"from":["GHSA-qrr6-mg7r-m243"],"provenance":"source"}],"summary":{"text":"PHPUnit (sebastianbergmann/phpunit), versions 12.5.21 and 13.1.5, forwards PHP INI settings to child processes used for isolated and PHPT test execution as -d command-line arguments without neutralizing newlines and other INI metacharacters, so a value containing a newline is parsed as multiple directives. An attacker who can influence a single INI value and has local access to the system running the tests, with low privileges, can inject directives such as auto_prepend_file pointing to an attacker-controlled file, achieving code execution in the child process without user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:13Z"},"euvd":{"id":"EUVD-2026-28649","exploited":false,"provenance":"source"}}