# CVE-2026-67434: PHP\_CodeSniffer gitblame report command injection via crafted filename

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.06% (percentile 64, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** GHSA-hmqg-cxww-wqhq
- **Published:** 2026-08-06T21:31:32.511Z
- **Modified:** 2026-10-24T16:10:00.153Z

## 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

## 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

- Packagist `squizlabs/php_codesniffer`: affected \< 3.13.6; fixed 3.13.6, 4.0.2 (osv)
- PHPCSStandards PHP\_CodeSniffer: \< 3.13.6; \>= 4.0.0, \< 4.0.2 (cvelist)

## Mitigation

- Upgrade squizlabs/php\_codesniffer to one of 3.13.6, 4.0.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/PHPCSStandards/PHP_CodeSniffer/security/advisories/GHSA-hmqg-cxww-wqhq>
- patch: <https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/1473>
- patch: <https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/7a3a6bbf153a03fa3a9413afc60bded6b764e76b>
- patch: <https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/f0e1ebb0563f0e5d7f190497a787bcaf8474f3fe>
- other: <https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/3.13.6>
- other: <https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/4.0.2>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/squizlabs/php_codesniffer/CVE-2026-67434.yaml>
- other: <https://github.com/PHPCSStandards/PHP_CodeSniffer>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-67434>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hmqg-cxww-wqhq> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-67434> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-67434>
