Live › vulnerability › CVE-2026-119193
PHPUnit 13.4.0 through 13.4.4 writes PHPT code coverage files to a predictable directory under the system temp path without checking ownership. On shared multi-user machines, a local attacker can pre-create that directory and swap in a malicious file that runs with the developer's privileges.
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-10-29 20:26 UTC. All times on this page are UTC.
Only projects using PHPUnit 13.4.0 through 13.4.4 that run PHPT tests with code coverage on a shared multi-user system where another local user can write to the temporary path. PHPUnit 12.5 and earlier, default macOS and Windows per-user temp directories, and single-user machines are not affected.
No product ranges from the sources yet.
composer show phpunit/phpunit and confirm the installed version is not in the range 13.4.0 to 13.4.413.4.4Each row is the first time that source carried this signal. The analyst’s rows are its own findings.
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.
This page as .md · .json · in your agent: get_signal("CVE-2026-119193")
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.