# CVE-2026-119193: PHPUnit vulnerable to code execution by other local users via shared temporary directory in PHPT code coverage handling

- Severity: Medium 5.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-10-29T19:35:36.052Z
- Modified: 2026-10-30T23:15:05.437Z
- Also known as: GHSA-9vw2-f4vp-x7gf
- Weaknesses: CWE-379
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- sebastianbergmann phpunit: >= 13.4.0, < 13.4.4
- phpunit/phpunit (Packagist): from 13.4.0 before 13.4.4

## Every score

- GitHub_M: CVSS:4.0 5.4 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-9vw2-f4vp-x7gf> (web)
- <https://github.com/sebastianbergmann/phpunit/commit/ae31c78a86e9d6c641497bacf47462d7bb7d7f34> (web)
- <https://github.com/sebastianbergmann/phpunit/releases/tag/13.4.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-119193> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/phpunit/phpunit/CVE-2026-119193.yaml> (web)
- <https://github.com/sebastianbergmann/phpunit> (package)

## Sources

- CVE List: [CVE-2026-119193](https://www.cve.org/CVERecord?id=CVE-2026-119193), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-9vw2-f4vp-x7gf](https://github.com/advisories/GHSA-9vw2-f4vp-x7gf), CC-BY-4.0, modified 2026-10-30
- NVD: [CVE-2026-119193](https://nvd.nist.gov/vuln/detail/CVE-2026-119193), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-119193 · Whole record: https://cve.day/CVE-2026-119193.json · Rebuilt by cve.day 2026-11-25T22:59:47.830Z
