Advisory record · GHSA-qrr6-mg7r-m243

PHPUnit has Argument injection via newline in PHP INI values that are forwarded to child processes

CVSS 7.8 HighEPSS 0.0019 · 8th percentile

Published by the GitHub Advisory Database at 18 Apr 2026, 00:59 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
phpunit/phpunitPackagist>=12.5.21, <12.5.22 || >=13.1.5, <13.1.612.5.22, 13.1.6
Identifiers
GHSA-qrr6-mg7r-m243 · CVE-2026-41570 · PKSA-5jz8-6tcw-pbk4
Weakness (CWE)
CWE-88 · CWE-93
Published
18 Apr 2026
Updated
12 May 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

PHPUnit versions 12.5.21 before 12.5.22 and 13.1.5 before 13.1.6 forward INI values to child processes without neutralizing newlines, so a value with an embedded newline can inject extra INI directives such as auto_prepend_file. An attacker must be able to control an INI value PHPUnit reads, such as in phpunit.xml, the host php.ini, or the PHP environment, which in practice means a crafted pull request in CI; the impact could be remote code execution in the child process. Upgrade to phpunit/phpunit 12.5.22 or 13.1.6.

Written 3 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.8 High 3.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0019, the 8th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:25 UTC First seen by agentprime
  2. 31 Oct 2026, 14:25 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.