CVE-2026-67434 json
PHP_CodeSniffer gitblame report command injection via crafted filename
published 2026-08-06 3 mo ago modified 2026-10-24 15 d ago also GHSA-hmqg-cxww-wqhq , EUVD-2026-54170
- cvss
- 7.3
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
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.
Patch / fix
- packagist squizlabs/php_codesniffer 3.13.6, 4.0.2
- github.com/PHPCSStandards/PHP_CodeSniffer@7a3a6bb commit
- github.com/PHPCSStandards/PHP_CodeSniffer@f0e1ebb commit
- github.com/PHPCSStandards/PHP_CodeSniffer#1473 pull request
- github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/3.13.6 release
- github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/4.0.2 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-67434 updated cvss 7.8
squizlabs/php_codesniffer: PHP_CodeSniffer: Arbitrary code execution via crafted filenames in blame reports
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 3 mo ago
Exploit prediction
1.06% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 7.3 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| CNA | 4.0 | 7.3 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | squizlabs/php_codesniffer | <3.13.6 >=4.0.0, <4.0.2 |
3.13.6 4.0.2 |
Affected products
- PHPCSStandards PHP_CodeSniffer
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/PHPCSStandards/PHP_CodeSniffer/pull/1473
web
-
github.com
/PHPCSStandards/PHP_CodeSniffer/commit/7a3a6bbf153a03fa3a9413afc60bded6b764e76b
web
-
github.com
/PHPCSStandards/PHP_CodeSniffer/commit/f0e1ebb0563f0e5d7f190497a787bcaf8474f3fe
web
-
github.com
/PHPCSStandards/PHP_CodeSniffer/security/advisories/GHSA-hmqg-cxww-wqhq
web
-
github.com
/PHPCSStandards/PHP_CodeSniffer/releases/tag/3.13.6
web
-
github.com
/PHPCSStandards/PHP_CodeSniffer/releases/tag/4.0.2
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/squizlabs/php_codesniffer/CVE-2026-67434.yaml
web
-
github.com
/PHPCSStandards/PHP_CodeSniffer
package
Sources
- CVE List CVE-2026-67434
- GitHub Advisory GHSA-hmqg-cxww-wqhq
- NVD CVE-2026-67434
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.