Creation of temporary file in directory with insecure permissions in PHPUnit - CVE-2026-119193

 

Creation of temporary file in directory with insecure permissions in PHPUnit - CVE-2026-119193

Published: November 9, 2026


Vulnerability identifier: #VU163163
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-119193
CWE-ID: CWE-379
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a low-privileged local attacker to execute arbitrary code with the privileges of a developer running PHPUnit.

The vulnerability exists due to PHPUnit reusing a predictable directory in shared temporary storage without checking ownership or permissions when running PHPT tests with code coverage. A low-privileged local attacker can create this directory before the developer runs those tests and replace a generated test file before execution, causing PHPUnit to execute attacker-controlled code.


Affected software

PHPUnit

How to mitigate CVE-2026-119193

Install security update from vendor's website.

PHPUnit - update to 13.4.4

External References

Related Security Bulletins