cve.bz

CVE-2026-67434 phpcsstandards php codesniffer: OS Command Injection

7.3 highEPSS 1.1%Fix available

High (7.3) in phpcsstandards php codesniffer. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in squizlabs/php_codesniffer 3.13.6, 4.0.2.

On this page
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.

Severity

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
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-08-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • squizlabs/php_codesniffer (Packagist): fixed in 3.13.6, 4.0.2

Ask an AI about this CVE

Show the promptExplain CVE-2026-67434 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-67434?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-67434?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-67434 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
PHPCSStandards PHP_CodeSniffer< 3.13.6
PHPCSStandards PHP_CodeSniffer>= 4.0.0, < 4.0.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hmqg-cxww-wqhqPackagistsquizlabs/php_codesniffer<3.13.63.13.6
GHSA-hmqg-cxww-wqhqPackagistsquizlabs/php_codesniffer>=4.0.0 <4.0.24.0.2

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat rates this vulnerability as an Important severity flaw because successful exploitation allows arbitrary shell command execution within the security context of the developer workstation or continuous integration runner processing untrusted code. Standard deployments remain unaffected in their default configuration since PHP_CodeSniffer defaults to full reporting and does not invoke external version control blame utilities. Exposure is restricted to environments that explicitly enable Git, Mercurial, or Subversion blame report generators against unvetted third-party repositories.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-67434.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON