Skip to main content

PHPUnit EUVDEUVD-2026-28649

| CVE-2026-41570 HIGH
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-05-08 GitHub_M GHSA-qrr6-mg7r-m243
7.8
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE
HIGH
qualitative

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Source Code Evidence Fetched
May 08, 2026 - 16:15 vuln.today
Analysis Generated
May 08, 2026 - 16:15 vuln.today
CVE Published
May 08, 2026 - 14:33 nvd
HIGH 7.8

DescriptionGitHub Advisory

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.

AnalysisAI

Arbitrary PHP directive injection in PHPUnit 12.5.21 and 13.1.5 enables local attackers with write access to phpunit.xml to achieve code execution in isolated test child processes by embedding newlines in INI setting values. The vulnerability exploits PHPUnit's unsanitized forwarding of INI settings to child processes via command-line arguments, where PHP's INI parser treats newlines as directive separators, allowing injection of auto_prepend_file to load attacker-controlled code. Fixed in versions 12.5.22 and 13.1.6. Primary exposure vector is Poisoned Pipeline Execution (PPE) in CI/CD environments running PHPUnit against untrusted pull requests without isolation.

Technical ContextAI

PHPUnit's JobRunner::settingsToParameters() method forwards PHP INI configuration to child processes (used for --process-isolation and PHPT tests) by constructing command-line arguments in the format -d name=value. The method previously passed these values without neutralizing PHP INI metacharacters. PHP's INI parser treats newline (\n) as a directive separator, semicolon (;) as comment start, and double-quote (") as string delimiter. An attacker embedding a newline in an INI value can inject additional directives like auto_prepend_file=/tmp/evil.php, which PHP executes before the test script. This is an instance of CWE-93 (Improper Neutralization of CRLF Sequences in HTTP Headers / Argument Injection). INI values can originate from <ini name="..." value="..."/> elements in phpunit.xml configuration files or be inherited from the parent PHP runtime via ini_get_all(). The fix adds validation to reject values containing \n or \r and quotes values containing ; or " to prevent parser interpretation.

RemediationAI

Upgrade PHPUnit to patched version 12.5.22 (for 12.x branch) or 13.1.6 (for 13.x branch) via Composer: composer update phpunit/phpunit. The fix implemented in pull request #6592 (https://github.com/sebastianbergmann/phpunit/pull/6592) adds validation in JobRunner::settingsToParameters() to throw PhpProcessException when INI values contain newline or carriage return characters, and quotes values containing semicolons or double-quotes to neutralize their metacharacter interpretation. If immediate patching is not feasible, implement compensating controls: (1) Enable branch protection requiring administrator review of phpunit.xml changes before CI execution, (2) Run PHPUnit in isolated containers/VMs with read-only filesystem mounts for configuration, preventing auto_prepend_file from loading writable paths, (3) Configure CI to execute tests from trusted branches only, rejecting direct execution of untrusted PR code, (4) Audit phpunit.xml and phpunit.xml.dist for existing INI values containing embedded newlines or suspicious directives. Note that disabling --process-isolation completely eliminates the vulnerable code path but breaks test isolation guarantees and PHPT test execution. Official advisory available at https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243.

More in PHP

View all
CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-46506 CRITICAL POC
10.0 May 13

NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro

CVE-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

Vendor StatusVendor

SUSE

Severity: High

Share

EUVD-2026-28649 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy