SCA: security update for squizlabs/php_codesniffer (GHSA-hmqg-cxww-wqhq)

high Tenable Cloud Security Plugin ID 445751

Description

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

- PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards. Prior to
versions 3.13.6 and 4.0.2, PHP_CodeSniffer contains a command injection vulnerability in the code that
generates the Gitblame, Hgblame, and Svnblame report formats. As a result, running PHP_CodeSniffer over
untrusted files, for example in a continuous integration pipeline that scans pull requests, or on a
developer machine reviewing third party code, could result in attacker controlled shell commands being
executed when the Gitblame, Hgblame, or Svnblame report processes a file whose name contains shell
metacharacters. Users using the default Full report, or any of the other non-blame reports, are not
affected. Users on a runtime platform which does not allow filenames to contain shell metacharacters, such
as " and ;, are not affected. This issue is fixed in versions 3.13.6 and 4.0.2. (CVE-2026-67434)

Solution

Update the squizlabs/php_codesniffer library and its related packages to version 3.13.6 or later.

See Also

https://github.com/advisories/GHSA-hmqg-cxww-wqhq

Plugin Details

Severity: High

ID: 445751

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 8/7/2026

Updated: 8/7/2026

Risk Information

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS Score Source: CVE-2026-67434

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/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: High

Base Score: 7.3

Threat Score: 4.4

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/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: 8/6/2026

Vulnerability Publication Date: 8/6/2026

Reference Information

CVE: CVE-2026-67434

cwe: CWE-78