CRLF Injection Affecting phpunit/phpunit package, versions >=12.5.21, <12.5.22>=13.1.5, <13.1.6


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-PHPUNITPHPUNIT-16301623
  • published27 Apr 2026
  • disclosed22 Apr 2026
  • creditkayw-geek

Introduced: 22 Apr 2026

CVE-2026-41570  (opens in a new tab)
CWE-88  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade phpunit/phpunit to version 12.5.22, 13.1.6 or higher.

Overview

Affected versions of this package are vulnerable to CRLF Injection via the settingsToParameters process. An attacker can execute arbitrary code and alter the configuration of child processes by injecting newline characters into PHP INI values that are forwarded to child processes. This allows the attacker to introduce additional INI directives, potentially enabling the loading of malicious files or extensions.

Workaround

This vulnerability can be mitigated by auditing INI values to ensure they do not contain newline, double quote, or semicolon characters, isolating CI execution of untrusted code, restricting modification permissions for configuration files, and sanitizing the host PHP's INI settings.

CVSS Base Scores

version 4.0
version 3.1