Read the docs
TI-2026-47714 Aliases CVE-2026-67434GHSA-hmqg-cxww-wqhq

PHP_CodeSniffer gitblame report command injection via crafted filename

Priority LOW 36CWE-78Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01063 64th percentileScored 2026-11-07
Fix Fixed PHP_CodeSniffer (PHPCSStandards): 3.13.6, 4.0.2squizlabs/php_codesniffer (Packagist): 3.13.6, 4.0.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
PHPCSStandardsPHP_CodeSnifferbefore 3.13.6; 4.0.0 to before 4.0.23.13.6, 4.0.2Patch availableCNA
—squizlabs/php_codesniffer (Packagist)before 3.13.63.13.6Patch availableGHSA-hmqg-cxww-wqhq
—squizlabs/php_codesniffer (Packagist)4.0.0 to before 4.0.24.0.2Patch availableGHSA-hmqg-cxww-wqhq
  • PHP_CodeSniffer VendorPHPCSStandards Affected before 3.13.6; 4.0.0 to before 4.0.2 Fixed in 3.13.6, 4.0.2 Patch available CNA
  • squizlabs/php_codesniffer (Packagist) Vendor— Affected before 3.13.6 Fixed in 3.13.6 Patch available GHSA-hmqg-cxww-wqhq
  • squizlabs/php_codesniffer (Packagist) Vendor— Affected 4.0.0 to before 4.0.2 Fixed in 4.0.2 Patch available GHSA-hmqg-cxww-wqhq

Remediation

  • Fix · CNA PHP_CodeSniffer (PHPCSStandards) Fixed in 3.13.6, 4.0.2
  • Fix · GHSA-hmqg-cxww-wqhq squizlabs/php_codesniffer (Packagist) Fixed in 3.13.6 Advisory →
  • Fix · GHSA-hmqg-cxww-wqhq squizlabs/php_codesniffer (Packagist) Fixed in 4.0.2 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-67434
  2. 2026-10-03 Alias added: GHSA-hmqg-cxww-wqhq

References

  • TI-2026-71240 Eval injection in PHPCSUtils array key handling allows code execution CVSS 3.1HIGH 8.6

Sources