{"id":"CVE-2026-67434","published":"2026-08-06T21:31:32Z","modified":"2026-08-07T15:37:19Z","title":"PHP_CodeSniffer gitblame report command injection via crafted filename","vendor":"PHPCSStandards","product":"PHP_CodeSniffer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01063,"percentile":0.65458,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/PHPCSStandards/PHP_CodeSniffer/security/advisories/GHSA-hmqg-cxww-wqhq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/1473","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/7a3a6bbf153a03fa3a9413afc60bded6b764e76b","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPCSStandards/PHP_CodeSniffer/commit/f0e1ebb0563f0e5d7f190497a787bcaf8474f3fe","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/3.13.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/4.0.2","tags":["x_refsource_MISC"]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":13.09},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"phpcsstandards","affectedVersions":[{"vendor":"PHPCSStandards","product":"PHP_CodeSniffer","versions":["< 3.13.6",">= 4.0.0, < 4.0.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-07T15:36:31.165042Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"squizlabs/php_codesniffer","vulnerableRanges":["<3.13.6",">=4.0.0, <4.0.2"],"patched":["3.13.6","4.0.2"],"from":["GHSA-hmqg-cxww-wqhq"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-54170","exploited":false,"provenance":"source"}}