CVE-2026-67434 Details
Description
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.
A command injection vulnerability has been identified in PHP_CodeSniffer versions prior to 3.13.6 and 4.0.2. The issue arises in the Gitblame, Hgblame, and Svnblame report formats, where untrusted files can trigger the execution of attacker-controlled shell commands. This vulnerability is particularly concerning in continuous integration pipelines that scan pull requests or during the review of third-party code. The issue is present when a file name contains shell metacharacters, and it does not affect users of the default Full report or those on a runtime platform that blocks such characters.
Users are advised to upgrade to PHP_CodeSniffer versions 3.13.6 or 4.0.2. For those unable to upgrade immediately, it is recommended to avoid using the Gitblame, Hgblame, or Svnblame reports on untrusted code.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No CVSS 3.x data is available for this CVE.
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 7, 2026 | CVE Modified | CISA-ADP |
| Aug 6, 2026 | New CVE Received | [email protected] |