Creation of temporary file in directory with insecure permissions in PHPUnit - CVE-2026-119193
Published: November 9, 2026
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.