# CVE-2026-67434: PHP_CodeSniffer gitblame report command injection via crafted filename

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2026-08-06T21:31:32.511Z
- Modified: 2026-10-24T16:10:00.153Z
- Also known as: GHSA-hmqg-cxww-wqhq
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- PHPCSStandards PHP_CodeSniffer: < 3.13.6; >= 4.0.0, < 4.0.2
- squizlabs/php_codesniffer (Packagist): before 3.13.6; from 4.0.0 before 4.0.2

## Every score

- GitHub_M: CVSS:4.0 7.3 High `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`
- GitHub: CVSS:4.0 High `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`

## References

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

## Sources

- CVE List: [CVE-2026-67434](https://www.cve.org/CVERecord?id=CVE-2026-67434), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-hmqg-cxww-wqhq](https://github.com/advisories/GHSA-hmqg-cxww-wqhq), CC-BY-4.0, modified 2026-08-06
- NVD: [CVE-2026-67434](https://nvd.nist.gov/vuln/detail/CVE-2026-67434), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-67434 · Whole record: https://cve.day/CVE-2026-67434.json · Rebuilt by cve.day 2026-11-25T22:59:31.405Z
