目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-119193— PHPUnit 本地用户代码执行漏洞

一分钟漏洞结论

影响对象
sebastianbergmann phpunit
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

PHPUnit 是一个用于 PHP 的测试框架。在 13.4.0 至 13.4.4 版本中, 文件中的 逻辑会在 下创建一个可预测的 目录,用于存放 PHPT 代码覆盖率的临时文件,并在未验证该目录所有权或权限的情况下重复使用该目录。在共享临时路径的多用户系统上,本地攻击者可以在开发者运行带代码覆盖率的 PHPT 测试之前预先创建该目录,从而在子进程通过 执行生成的任务文件之前替换该文件,进而以开发者的权限执行任意代码,同时测试过程和覆盖率报告仍显示为成功。PHPUnit 12.5 及更早版本、macOS 和 Wi

CVSS 5.4 · Medium EPSS 0.11% · P1

可能的 ATT&CK 技术 1 AI

T1203.001

影响版本矩阵 1

厂商产品 版本范围状态
sebastianbergmann phpunit >= 13.4.0, < 13.4.4 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-119193 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
PHPUnit vulnerable to code execution by other local users via shared temporary directory in PHPT code coverage handling
来源: CVE Program / CVE List V5
Vulnerability 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.
来源: CVE Program / CVE List V5
CVSS Information
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
来源: CVE Program / CVE List V5
Vulnerability Type
在具有不安全权限的目录中创建临时文件
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
sebastianbergmann phpunit >= 13.4.0, < 13.4.4 -

二、漏洞 CVE-2026-119193 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-119193 的情报信息

请登录查看更多情报信息。

CVE-2026-119193 补丁与修复 (1)

CVE-2026-119193 厂商页面 (1)

IV. Related Vulnerabilities