# PHP_CodeSniffer gitblame report command injection via crafted filename

Advisory record · `GHSA-hmqg-cxww-wqhq`

- **Identifiers:** `GHSA-hmqg-cxww-wqhq` · `CVE-2026-67434` · `PKSA-rdkp-vv9z-mjkg`
- **State:** Confirmed
- **Severity:** CVSS 7.3 High
- **Critical:** No
- **Weakness (CWE):** [CWE-78](https://cwe.mitre.org/data/definitions/78.html)
- **Tags:** [Command injection](https://agentprime.io/advisories/tag/command-injection.md)
- **Published:** 6 Aug 2026
- **Updated:** 6 Aug 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 Aug 2026, 21:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `squizlabs/php_codesniffer` (Packagist): affected `<3.13.6 || >=4.0.0, <4.0.2`; fixed in `3.13.6`, `4.0.2`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> PHP_CodeSniffer versions before 3.13.6 and from 4.0.0 before 4.0.2 are vulnerable to command injection in the Gitblame, Hgblame and Svnblame reports. An attacker who can get PHP_CodeSniffer to scan a file whose name contains shell metacharacters, such as in a CI pipeline scanning pull requests, could run arbitrary shell commands. Upgrade to 3.13.6 or 4.0.2; until then, avoid these reports when scanning untrusted code.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.3 High, CVSS 4.0: `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`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.011, the 65th percentile, on 13 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:24 UTC: First seen by agentprime
- 31 Oct 2026, 14:24 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-hmqg-cxww-wqhq)

## Sources

- [GitHub Advisory Database: GHSA-hmqg-cxww-wqhq](https://github.com/advisories/GHSA-hmqg-cxww-wqhq)
- [OSV: GHSA-hmqg-cxww-wqhq](https://osv.dev/vulnerability/GHSA-hmqg-cxww-wqhq)
- <https://github.com/PHPCSStandards/PHP_CodeSniffer/security/advisories/GHSA-hmqg-cxww-wqhq>
- <https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/1473>
- <https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/7a3a6bbf153a03fa3a9413afc60bded6b764e76b>
- <https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/f0e1ebb0563f0e5d7f190497a787bcaf8474f3fe>
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/squizlabs/php_codesniffer/CVE-2026-67434.yaml>
- <https://github.com/PHPCSStandards/PHP_CodeSniffer>
- <https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/3.13.6>
- <https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/4.0.2>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-hmqg-cxww-wqhq>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-hmqg-cxww-wqhq/>. Everything for agents: <https://agentprime.io/llms.txt>.
