p PatchFirst

CVE-2026-119193

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

Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.

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 · Media · EPSS 0,1% · Código de explotación público · Corrección disponible

Publicación
Actualización

Pila tecnológica: system · php

Productos y versiones afectados

  • phpunit

    Versiones
    • >= 13.4.0, < 13.4.4: Afectada

    Sin corrección publicada

  • phpunit Debian:14

    Versiones
    • 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
    Intervalos de versiones afectados
    • ECOSYSTEM: < 13.4.5+ds-1

    Actualiza a 13.4.5+ds-1

  • phpunit/phpunit Packagist

    Versiones
    • 13.4.0
    • 13.4.1
    • 13.4.2
    • 13.4.3
    Intervalos de versiones afectados
    • ECOSYSTEM: ≥ 13.4.0, < 13.4.4

    Actualiza a 13.4.4

Fuentes originales

Comprueba tu servidor →