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.
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
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.3 | High | 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 | 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
Sources
- GitHub Advisory Database: GHSA-hmqg-cxww-wqhq
- OSV: GHSA-hmqg-cxww-wqhq
- github.com/PHPCSStandards/PHP_CodeSniffer/security/advisories/GHSA-hmqg-cxww-wqhq
- github.com/PHPCSStandards/PHP_CodeSniffer/pull/1473
- github.com/PHPCSStandards/PHP_CodeSniffer/commit/7a3a6bbf153a03fa3a9413afc60bded6b764e76b
- github.com/PHPCSStandards/PHP_CodeSniffer/commit/f0e1ebb0563f0e5d7f190497a787bcaf8474f3fe
- github.com/FriendsOfPHP/security-advisories/blob/master/squizlabs/php_codesniffer/CVE-2026-67434.yaml
- github.com/PHPCSStandards/PHP_CodeSniffer
- github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/3.13.6
- github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/4.0.2