Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-67434
Published:August 06, 2026
Updated:August 16, 2026
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.
Affected Packages
https://github.com/PHPCSStandards/PHP_CodeSniffer.git (GITHUB):
Affected version(s) >=4.0.0 <4.0.2
Fix Suggestion:
Update to version 4.0.2
https://github.com/PHPCSStandards/PHP_CodeSniffer.git (GITHUB):
Affected version(s) >=1.3.1 <3.13.6
Fix Suggestion:
Update to version 3.13.6
squizlabs/php_codesniffer (PHP):
Affected version(s) >=4.0.0 <4.0.2
Fix Suggestion:
Update to version 4.0.2
squizlabs/php_codesniffer (PHP):
Affected version(s) >=dev-dependabot/github_actions/actions/attest-build-provenance-2 <3.13.6
Fix Suggestion:
Update to version 3.13.6
squizlabs/php_codesniffer (PHP):
Affected version(s) >=dev-dependabot/github_actions/actions/attest-build-provenance-2 <3.13.6
Fix Suggestion:
Update to version 3.13.6
Do you need more information?
Contact Us
CVSS v4
Base Score:
7.3
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.8
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
EPSS
Base Score:
0.70