Intel

AIKIDO-2026-383212

squizlabs/php_codesniffer is vulnerable to Command Injection

Command InjectionCVE-2026-67434 Published Yesterday

73

High Risk

This Affects:

PHPsquizlabs/php_codesniffer
1.0.0 - 3.13.5
Fixed in 3.13.6
4.0.0 - 4.0.1
Fixed in 4.0.2
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.

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.

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.

How to fix this

Upgrade the squizlabs/php_codesniffer library to the patch version.