CVE-2026-41570
PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.191% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.8 · published by GitHub_MCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T12:58:29.701Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:29.701Z | CVE Program |
| epss | verified | 2026-11-19T16:04:50.042Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:36.057Z | OSV |
| affected | verified | 2026-11-19T12:58:29.701Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:29.701Z | CVE Program |
Affected versions and configuration
sebastianbergmann phpunit; default status: unknown: = 12.5.21 [affected; scheme: unspecified]; = 13.1.5 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "sebastianbergmann",
"product": "phpunit",
"versions": [
{
"status": "affected",
"version": "= 12.5.21"
},
{
"status": "affected",
"version": "= 13.1.5"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-41570",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2026-05-08T16:01:31.346640Z"
}
}
}
],
"references": [
{
"url": "https://github.com/sebastianbergmann/phpunit/pull/6592",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-05-08T16:01:51.929Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-qrr6-mg7r-m243",
"aliases": [
"CVE-2026-41570"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "12.5.21"
},
{
"fixed": "12.5.22"
}
]
}
],
"package": {
"name": "phpunit/phpunit",
"purl": "pkg:composer/phpunit/phpunit",
"ecosystem": "Packagist"
},
"versions": [
"12.5.21"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-qrr6-mg7r-m243/GHSA-qrr6-mg7r-m243.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "13.1.5"
},
{
"fixed": "13.1.6"
}
]
}
],
"package": {
"name": "phpunit/phpunit",
"purl": "pkg:composer/phpunit/phpunit",
"ecosystem": "Packagist"
},
"versions": [
"13.1.5"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-qrr6-mg7r-m243/GHSA-qrr6-mg7r-m243.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-41570",
"type": "ADVISORY"
},
{
"url": "https://github.com/sebastianbergmann/phpunit/pull/6592",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/phpunit/phpunit/CVE-2026-41570.yaml",
"type": "WEB"
},
{
"url": "https://github.com/sebastianbergmann/phpunit",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-88",
"CWE-93"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2026-05-08T15:16:40Z",
"github_reviewed_at": "2026-04-18T00:59:28Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Packagist / package | phpunit/phpunit | Not a distribution channel | 12.5.22 | Official record |
| ecosystem-boundary | Packagist / package | phpunit/phpunit | Not a distribution channel | 13.1.6 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:36.057ZArchived source JSON
Source publication: 2026-04-18T00:59:28.000Z
Source modification: 2026-05-12T17:10:19.254ZDocument fingerprint
e4fec9570b5ffb3c7798745c603eea702a73f9a529e0a1cbf05665bbdb806173 - CVE ProgramConsulted: 2026-11-19T12:58:29.701ZArchived source JSON
Source publication: 2026-05-08T14:33:51.630Z
Source modification: 2026-05-08T16:01:51.929ZDocument fingerprint
34cfa712f79a14ce6139842340cb65c474e45eaf21ef04356be572a4fc8f5029 - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:50.042ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
7e3baeaa25e4f4d3f88d7df0a5c946bd568f06b8497afa562ddc93c71aed8205
Official status history
- UNKNOWN → PUBLISHED · · evidence