phpunit — security 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.
- Products
- phpunit
- Affected versions
- 11.5.19-1build4, 11.5.3-1ubuntu4, 13.0.0-2ubuntu6, 13.2.6+ds-1, 4.7.6-1, 4.8.16-1, 5.1.3-1+build1, 5.1.3-1+ubuntu1, 5.1.3-1+ubuntu3, 5.1.3-1+ubuntu3+esm1, 5.1.3-1ubuntu1, 5.4.6-2, 5.4.6-3, 6.5.5-1ubuntu2, 7.5.6-1, 8.5.2-1ubuntu1, 9.5.10-1ubuntu2, 9.5.4-1, 9.6.10-1, 9.6.13-1, 9.6.15-1, 9.6.16-1, 9.6.17-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-41570
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:11 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-41570
phpunit
Fixed versions: Not specified
phpunit
Fixed versions: Not specified
phpunit
Fixed versions: Not specified
phpunit
Fixed versions: Not specified
phpunit
Fixed versions: Not specified
phpunit
Fixed versions: Not specified
phpunit
Fixed versions: Not specified
phpunit
Fixed versions: Not specified
Complete source record
{
"id": "c3508a0607863251aa68356404b0cd8b9c204c74103cec0ac7222f1c844b7cc3",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-41570",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-41570",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2026-41570",
"products": [
{
"name": {
"value": "phpunit",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.7.6-1",
"evidence": "/affected/0/versions"
},
{
"value": "4.8.16-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.1.3-1ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "5.1.3-1+build1",
"evidence": "/affected/0/versions"
},
{
"value": "5.1.3-1+ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "5.1.3-1+ubuntu3",
"evidence": "/affected/0/versions"
},
{
"value": "5.1.3-1+ubuntu3+esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "phpunit",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.4.6-2",
"evidence": "/affected/1/versions"
},
{
"value": "5.4.6-3",
"evidence": "/affected/1/versions"
},
{
"value": "6.5.5-1ubuntu2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "phpunit",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "7.5.6-1",
"evidence": "/affected/2/versions"
},
{
"value": "8.5.2-1ubuntu1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "phpunit",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "9.5.4-1",
"evidence": "/affected/3/versions"
},
{
"value": "9.5.10-1ubuntu2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "phpunit",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "9.6.10-1",
"evidence": "/affected/4/versions"
},
{
"value": "9.6.13-1",
"evidence": "/affected/4/versions"
},
{
"value": "9.6.15-1",
"evidence": "/affected/4/versions"
},
{
"value": "9.6.16-1",
"evidence": "/affected/4/versions"
},
{
"value": "9.6.17-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "phpunit",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "11.5.3-1ubuntu4",
"evidence": "/affected/5/versions"
},
{
"value": "11.5.19-1build4",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "phpunit",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "13.0.0-2ubuntu6",
"evidence": "/affected/6/versions"
},
{
"value": "13.2.6+ds-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "phpunit",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "11.5.19-1build4",
"evidence": "/affected/7/versions"
},
{
"value": "13.0.0-2ubuntu6",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-41570",
"aliases": [
"UBUNTU-CVE-2026-41570"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "phpunit",
"purl": "pkg:deb/ubuntu/phpunit?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"4.7.6-1",
"4.8.16-1",
"5.1.3-1ubuntu1",
"5.1.3-1+build1",
"5.1.3-1+ubuntu1",
"5.1.3-1+ubuntu3",
"5.1.3-1+ubuntu3+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41570.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "phpunit",
"binary_version": "5.1.3-1+ubuntu3+esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "phpunit",
"purl": "pkg:deb/ubuntu/phpunit?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"5.4.6-2",
"5.4.6-3",
"6.5.5-1ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41570.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "phpunit",
"binary_version": "6.5.5-1ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "phpunit",
"purl": "pkg:deb/ubuntu/phpunit?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"7.5.6-1",
"8.5.2-1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41570.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "phpunit",
"binary_version": "8.5.2-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "phpunit",
"purl": "pkg:deb/ubuntu/phpunit?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"9.5.4-1",
"9.5.10-1ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41570.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "phpunit",
"binary_version": "9.5.10-1ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "phpunit",
"purl": "pkg:deb/ubuntu/phpunit?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"9.6.10-1",
"9.6.13-1",
"9.6.15-1",
"9.6.16-1",
"9.6.17-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41570.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "phpunit",
"binary_version": "9.6.17-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "phpunit",
"purl": "pkg:deb/ubuntu/phpunit?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"11.5.3-1ubuntu4",
"11.5.19-1build4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41570.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "phpunit",
"binary_version": "11.5.19-1build4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "phpunit",
"purl": "pkg:deb/ubuntu/phpunit?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"13.0.0-2ubuntu6",
"13.2.6+ds-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41570.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "phpunit",
"binary_version": "13.2.6+ds-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "phpunit",
"purl": "pkg:deb/ubuntu/phpunit?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"11.5.19-1build4",
"13.0.0-2ubuntu6"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41570.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "phpunit",
"binary_version": "13.0.0-2ubuntu6"
}
]
}
}
],
"modified": "2026-10-17T12:58:15.403122108Z",
"provider": "osv",
"upstream": [
"CVE-2026-41570"
],
"references": [
"https://ubuntu.com/security/CVE-2026-41570",
"https://www.cve.org/CVERecord?id=CVE-2026-41570",
"https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-qrr6-mg7r-m243",
"https://github.com/sebastianbergmann/phpunit/pull/6592"
]
},
"related_cves": [
{
"value": "CVE-2026-41570",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 358456,
"published_at": "2026-05-08T15:16:00+00:00"
}