CVE-2026-119193
CVE-2026-119193 · PHPUnit vulnerable to code execution by other local users via shared temporary directory in PHPT code coverage handling
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
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.
CVSS 5.4 · Moyenne · EPSS 0,1% · Code d’exploitation public · Correctif disponible
- Publication
- Mise à jour
Produits et versions concernés
phpunit
- Versions du logiciel
- >= 13.4.0, < 13.4.4: Concernée
Aucun correctif publié
phpunit Debian:14
- Versions du logiciel
- 11.5.19-1
- 12.0.10-1
- 12.0.2-1
- 12.0.3-1
- 12.0.4-1
- 12.0.5-1
- 12.0.7-1
- 12.0.7-2
- 12.0.8-1
- 12.0.9-1
- 12.1.0-1
- 12.1.2-1
- 12.1.3-1
- 12.1.4-1
- 12.1.5-1
- 12.1.6-1
- 12.2.1-1
- 12.2.2-1
- 12.2.3-1
- 12.2.5-1
- 12.2.6-1
- 12.2.7-1
- 12.3.0-1
- 12.3.11-1
- 12.3.12-1
- 12.3.14-1
- 12.3.15-1
- 12.3.15-2
- 12.3.3-1
- 12.3.4-1
- 12.3.5-1
- 12.3.6-1
- 12.3.7-1
- 12.3.8-1
- 12.4.0-1
- 12.4.1-1
- 12.4.2-1
- 12.4.3-1
- 12.4.4-1
- 12.4.5-1
- 12.5.1-1
- 12.5.2-1
- 12.5.3-1
- 12.5.4-1
- 12.5.5-1
- 12.5.6-1
- 12.5.7-1
- 12.5.8-1
- 12.5.9-1
- 13.0.0-1
- 13.0.0-2
- 13.0.1-1
- 13.0.2-1
- 13.0.3-1
- 13.0.5-1
- 13.0.6-1
- 13.0.6-2
- 13.0.6-3
- 13.1.0-1
- 13.1.1-1
- 13.1.13+ds-1
- 13.1.13+ds-2
- 13.1.14+ds-1
- 13.1.3-1
- 13.1.5-1
- 13.1.6-1
- 13.1.7-1
- 13.1.8+ds-1
- 13.1.9+ds-1
- 13.2.0+ds-1
- 13.2.1+ds-1
- 13.2.2+ds-1
- 13.2.3+ds-1
- 13.2.4+ds-1
- 13.2.4+ds-2
- 13.2.5+ds-1
- 13.2.6+ds-1
- 13.3.0+ds-1
- 13.3.0+ds-2
- 13.3.1+ds-1
- 13.3.2+ds-1
- 13.3.3+ds-1
- 13.3.4+ds-1
- 13.3.5+ds-1
- 13.3.6+ds-1
- 13.4.1+ds-1
- 13.4.1+ds-2
- 13.4.2+ds-1
- 13.4.3+ds-1
- Plages de versions concernées
- ECOSYSTEM: < 13.4.5+ds-1
Mettez à jour vers 13.4.5+ds-1
phpunit/phpunit Packagist
- Versions du logiciel
- 13.4.0
- 13.4.1
- 13.4.2
- 13.4.3
- Plages de versions concernées
- ECOSYSTEM: ≥ 13.4.0, < 13.4.4
Mettez à jour vers 13.4.4