CVE-2026-119193
PHPUnit vulnerable to code execution by other local users via shared temporary directory in PHPT code coverage handling
PHPUnit is a testing framework for PHP. From 13.4.0 until 13.4.4, the TestCase::coverageFilesDirectory() logic in src/Runner/Phpt/TestCase.php creates temporary files for PHPT code coverage in a predictable phpunit-phpt directory under sys_get_temp_dir() and reuses that directory without verifying its ownership or permissions. On multi-user systems with a shared temporary path, a local attacker who creates the directory before the developer runs PHPT tests with code coverage can replace the generated job file before the child process executes it with require, allowing arbitrary code execution with the developer's privileges while the test and coverage report appear successful. PHPUnit 12.5 and earlier, default macOS and Windows configurations with per-user temporary directories, and single-user environments where another user cannot create files in the temporary path are not affected. This issue is fixed in 13.4.4.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.113% · 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-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 5.4 · published by GitHub_MCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:58:01.986Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:01.986Z | CVE Program |
| epss | verified | 2026-11-19T18:27:15.839Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:36.057Z | OSV |
| affected | verified | 2026-11-19T12:58:01.986Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:01.986Z | CVE Program |
Affected versions and configuration
sebastianbergmann phpunit; default status: unknown: >= 13.4.0, < 13.4.4 [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": ">= 13.4.0, < 13.4.4"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-119193",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2026-10-30T15:34:44.219252Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-10-30T16:09:03.726Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-9vw2-f4vp-x7gf",
"aliases": [
"CVE-2026-119193"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "13.4.0"
},
{
"fixed": "13.4.4"
}
]
}
],
"package": {
"name": "phpunit/phpunit",
"purl": "pkg:composer/phpunit/phpunit",
"ecosystem": "Packagist"
},
"versions": [
"13.4.0",
"13.4.1",
"13.4.2",
"13.4.3"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-9vw2-f4vp-x7gf/GHSA-9vw2-f4vp-x7gf.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-9vw2-f4vp-x7gf",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119193",
"type": "ADVISORY"
},
{
"url": "https://github.com/sebastianbergmann/phpunit/commit/ae31c78a86e9d6c641497bacf47462d7bb7d7f34",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/phpunit/phpunit/CVE-2026-119193.yaml",
"type": "WEB"
},
{
"url": "https://github.com/sebastianbergmann/phpunit",
"type": "PACKAGE"
},
{
"url": "https://github.com/sebastianbergmann/phpunit/releases/tag/13.4.4",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-379"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-10-29T20:17:30Z",
"github_reviewed_at": "2026-10-30T23:01:21Z"
}
}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 | 13.4.4 | 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-10-30T23:01:21.000Z
Source modification: 2026-10-30T23:15:05.437ZDocument fingerprint
e4fec9570b5ffb3c7798745c603eea702a73f9a529e0a1cbf05665bbdb806173 - CVE ProgramConsulted: 2026-11-19T12:58:01.986ZArchived source JSON
Source publication: 2026-10-29T19:35:36.052Z
Source modification: 2026-10-30T16:09:03.726ZDocument fingerprint
979d3d68f37054208918fa8b568ec79ac682d30233526371cc956fd87dea7d53 - FIRST EPSSConsulted: 2026-11-19T18:27:15.839ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
3968edb9ea74413a682c29f7f13eea69d6ccc4a7bad8631fc08b2863ebe922b4 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence