Skip to main content
VulnerabilityPublished

CVE-2026-41570: sebastianbergmann phpunit · CRLF Injection

Affects sebastianbergmann phpunitSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.8 High · fixed in 12.5.22 : patch sebastianbergmann phpunit soon.

Data as of 29 Oct 2026, 19:04 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 8% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 12.5.22
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
sebastianbergmannphpunitAffected
  • =12.5.21
  • =13.1.5
Fixed in–
GitHubsebastianbergmann/phpunitpkg:github/sebastianbergmann/phpunitOther threatsAffected
  • =12.5.21
  • =13.1.5
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available: users should upgrade PHPUnit to versions 12.5.22 or 13.1.6 or later. These versions properly neutralize INI metacharacters and prevent CRLF injection. Until upgraded, avoid running untrusted code or tests that could influence INI settings. Patch status is confirmed by the vendor advisory indicating the issue is resolved in the specified versions.

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.

References

Community reviews

Loading reviews…