SCA: security update for phpunit/phpunit (GHSA-9vw2-f4vp-x7gf)

medium Tenable Cloud Security Plugin ID 478093

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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-2026-119193)

Solution

Update the phpunit/phpunit library and its related packages to version 13.4.4 or later.

See Also

https://github.com/advisories/GHSA-9vw2-f4vp-x7gf

Plugin Details

Severity: Medium

ID: 478093

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 10/31/2026

Updated: 10/31/2026

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.56

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Temporal Score: 3.4

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2026-119193

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 5.4

Threat Score: 2

Threat Vector: CVSS:4.0/E:U

Vector: 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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/30/2026

Vulnerability Publication Date: 10/29/2026

Reference Information

CVE: CVE-2026-119193

cwe: CWE-379