Skip to main content
← All vulnerabilities
CVE-2026-67434GHSA-HMQG-CXWW-WQHQ

PHP_CodeSniffer gitblame report command injection via crafted filename

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.13.6, 4.0.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • PHPCSStandards PHP_CodeSniffer

    fixed in 3.13.6; From 4.0.0 · fixed in 4.0.2

  • squizlabs/php_codesnifferPackagist

    fixed in 3.13.6

  • squizlabs/php_codesnifferPackagist

    From 4.0.0 · fixed in 4.0.2

References 6

GitHub · PHPCSStandards/PHP_CodeSniffer