Intel

AIKIDO-2026-383212

squizlabs/php_codesniffer is vulnerable to Command Injection

CVE-2026-67434Published Aug 6, 2026
August 6, 2026

73

CVE Score

High

Command Injection

Are you affected? Scan for Free

TL;DR

The Gitblame, Hgblame, and Svnblame report generators build OS commands from scanned file names without neutralizing shell metacharacters. A file whose name contains shell metacharacters can cause attacker-controlled commands to run when those blame reports process untrusted trees, such as in CI that scans pull requests or on a developer machine reviewing third-party code. Default and other non-blame reports are not affected. The fix escapes or otherwise sanitizes file names before they are passed to the shell for blame report generation.

How do I fix this?

Upgrade the squizlabs/php_codesniffer library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and run PHP_CodeSniffer with the Gitblame, Hgblame, or Svnblame report formats over untrusted files.

Versions

1.0.0 - 3.13.5

Fixed in 3.13.6

4.0.0 - 4.0.1

Fixed in 4.0.2

Background info

squizlabs/php_codesniffer is vulnerable to Command Injection in versions 1.0.0 - 3.13.5 and 4.0.0 - 4.0.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea