CVE-2026-67434
PHP_CodeSniffer gitblame report command injection via crafted filename
Also known as GHSA-hmqg-cxww-wqhq
Mitigation
- Upgrade squizlabs/php_codesniffer to one of 3.13.6, 4.0.2 (or later in the same release line).
Who should check
- Projects that depend on Packagist package squizlabs/php_codesniffer (< 3.13.6)
- Anyone running PHPCSStandards PHP_CodeSniffer < 3.13.6; >= 4.0.0, < 4.0.2
Vulnerability facts
- Affected
- squizlabs/php_codesniffer < 3.13.6
- Fixed in
- 3.13.6, 4.0.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.3 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 1.06% chance of exploitation in 30 days (percentile 64, 2026-11-26)
- CWE
- CWE-78
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist squizlabs/php_codesniffer | < 3.13.6 | 3.13.6, 4.0.2 | osv |
| PHPCSStandards PHP_CodeSniffer | < 3.13.6; >= 4.0.0, < 4.0.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-67434. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-67434.md Affected: squizlabs/php_codesniffer < 3.13.6 Fixed in: 3.13.6, 4.0.2 Steps: 1. Search this machine and project for squizlabs/php_codesniffer (Packagist), PHPCSStandards PHP_CodeSniffer: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
FAQ
Is CVE-2026-67434 being exploited?
There is no confirmed exploitation: CVE-2026-67434 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.06% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-67434?
High: CVSS 7.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-67434?
squizlabs/php_codesniffer < 3.13.6.
Is there a fix for CVE-2026-67434?
Yes. Fixed in 3.13.6, 4.0.2. Upgrade squizlabs/php_codesniffer to one of 3.13.6, 4.0.2 (or later in the same release line).
How do I check if I'm affected by CVE-2026-67434?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.