CVE-2026-119193 json
PHPUnit vulnerable to code execution by other local users via shared temporary directory in PHPT code coverage handling
published 2026-10-29 10 d ago modified 2026-10-30 9 d ago also GHSA-9vw2-f4vp-x7gf , EUVD-2026-113349
- cvss
- 5.4
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 1%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist phpunit/phpunit 13.4.4
- phpunit Debian 14 13.4.5+ds-1
debian advisories DEBIAN-CVE-2026-119193
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-119193 updated cvss 7.0
phpunit/phpunit: PHPUnit: Arbitrary code execution via predictable temporary directory usage
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 9 d ago
Exploit prediction
0.11% chance of exploitation in the next 30 days, higher than 1% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.4 | 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 |
| CNA | 4.0 | 5.4 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | phpunit/phpunit | >=13.4.0, <13.4.4 |
13.4.4 |
Affected products
- sebastianbergmann phpunit
Classification
- Weakness
-
- CWE-379 Creation of Temporary File in Directory with Insecure Permissions
References
-
github.com
/sebastianbergmann/phpunit/commit/ae31c78a86e9d6c641497bacf47462d7bb7d7f34
web
-
github.com
/sebastianbergmann/phpunit/security/advisories/GHSA-9vw2-f4vp-x7gf
web
-
github.com
/sebastianbergmann/phpunit/releases/tag/13.4.4
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-119193
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/phpunit/phpunit/CVE-2026-119193.yaml
web
-
github.com
/sebastianbergmann/phpunit
package
Sources
- CVE List CVE-2026-119193
- GitHub Advisory GHSA-9vw2-f4vp-x7gf
- NVD CVE-2026-119193
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.