{"answers":{"affected":"4 open source packages ship an affected version, including squizlabs/php_codesniffer.","exploited":"There is no known exploitation of CVE-2026-67434 in the wild and no public exploit code.","fix":"Upgrade squizlabs/php_codesniffer to a fixed version for your release line: 3.13.6 or 4.0.2.","what":"CVE-2026-67434 is a high-severity command injection vulnerability in PHPCSStandards PHP_CodeSniffer, published on 6 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-67434 and fix it if it is affected.\n\nWhat it is: CVE-2026-67434 is a high-severity command injection vulnerability in PHPCSStandards PHP_CodeSniffer, published on 6 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-67434 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- squizlabs/php_codesniffer (Packagist): affected all versions; fixed in 3.13.6\n- squizlabs/php_codesniffer (Packagist): affected all versions; fixed in 3.13.6\n- squizlabs/php_codesniffer (Packagist): affected from 4.0.0; fixed in 4.0.2\n- squizlabs/php_codesniffer (Packagist): affected from 4.0.0; fixed in 4.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-67434/ (Markdown: https://insights.sbomify.com/CVE-2026-67434/index.md)","id":"CVE-2026-67434","markdown":"https://insights.sbomify.com/CVE-2026-67434/index.md","name":"CVE-2026-67434","record":{"aliases":["GHSA-hmqg-cxww-wqhq","MINI-3mh5-p945-wp98","MINI-7289-cjm8-fvfr","MINI-h4g7-8gqp-x5mr"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"PHP code linter","requires_auth":"none","summary":"Attackers can execute arbitrary shell commands via crafted filenames when using specific blame report formats in PHP_CodeSniffer.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"PHP_CodeSniffer gitblame report command injection via crafted filename","id":"CVE-2026-67434","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":4,"n_references":6,"next":{"headline":"linuxfabrik-lib: fetch() forwards credential headers across a cross-origin redirect","id":"CVE-2026-67435"},"packages":[{"ecosystem":"Packagist","fixed":["3.13.6"],"introduced":["0"],"last_affected":[],"package":"squizlabs/php_codesniffer","purl":null,"source":"GHSA-hmqg-cxww-wqhq"},{"ecosystem":"Packagist","fixed":["3.13.6"],"introduced":["0"],"last_affected":[],"package":"squizlabs/php_codesniffer","purl":"pkg:composer/squizlabs/php_codesniffer","source":"GHSA-hmqg-cxww-wqhq"},{"ecosystem":"Packagist","fixed":["4.0.2"],"introduced":["4.0.0"],"last_affected":[],"package":"squizlabs/php_codesniffer","purl":null,"source":"GHSA-hmqg-cxww-wqhq"},{"ecosystem":"Packagist","fixed":["4.0.2"],"introduced":["4.0.0"],"last_affected":[],"package":"squizlabs/php_codesniffer","purl":"pkg:composer/squizlabs/php_codesniffer","source":"GHSA-hmqg-cxww-wqhq"}],"prev":{"headline":"Linuxfabrik monitoring-plugins: Symlink following in logfile legacy database migration","id":"CVE-2026-67433"},"products":["PHP_CodeSniffer"],"published":"2026-08-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-07","vendors":["PHPCSStandards"]},"summary":"Attackers can execute arbitrary shell commands via crafted filenames when using specific blame report formats in PHP_CodeSniffer.","url":"https://insights.sbomify.com/CVE-2026-67434/"}