cve.bz

CVE-2026-102422 OS Command Injection

9.2 criticalEPSS 0.5%Fix available

Critical (9.2). EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in shell-quote 1.11.0.

On this page
shell-quote's `quote()` function emits a `{ comment }` token as `#` followed by its text, which comments out the rest of the shell line, including the opening quote of any later string token. A line terminator (\n, \r, U+2028, U+2029) in that later string therefore ends the comment, and the rest of the string is parsed as shell input: `quote(['echo', 'ok', { comment: 'x' }, 'a\nid;#'])` runs `id` in sh, bash, dash, ksh and zsh. `parse()` emits a comment token for a `#` in the middle of a word (for example `http://example.com/#frag`), so callers that combine `parse()` output with another untrusted string, such as `quote(parse(untrustedCommand).concat(untrustedArg))`, are affected. The fix for CVE-2026-9277 rejected line terminators in the comment's own text, but not in the tokens after it. Fixed in 1.11.0: `quote()` throws a `TypeError` when a string after a `{ comment }` token contains a line terminator.

Severity

CVSS 4.0

9.2 critical
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-17. 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-09-30. 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
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-102422 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-102422?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-102422?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-102422 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.

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pqg4-j6r4-53mvnpmshell-quote>=1.8.4 <1.11.01.11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-shell-quote1.7.4+~1.7.1-1+deb12u2DEBIAN-CVE-2026-102422
Debian13node-shell-quote1.7.4+~1.7.1-1+deb13u2DEBIAN-CVE-2026-102422
Debian14node-shell-quote1.12.0-1DEBIAN-CVE-2026-102422
Ubuntu24.04:LTS, 26.10, Pro:18.04:LTS and 2 morenode-shell-quoteno fix listedUBUNTU-CVE-2026-102422
Red Hathummingbird:1jaeger0:2.20.0-0.11.hum1RHSA-2026:69544
Red Hathummingbird:1prometheus3.130:3.13.3-0.2.hum1RHSA-2026:72750

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue is rated Important. Exploitation leads to arbitrary command execution with the privileges of the calling application, but only when that application passes the output of shell-quote's parse(), combined with another attacker-controlled string, to quote() and then runs the result through a shell. Red Hat products ship shell-quote as a bundled npm dependency across several offerings, including RHEL (grafana, grafana-pcp, pcs), Red Hat Ansible Automation Platform, Red Hat OpenShift AI and middleware distributions. Whether a given product is exposed depends on whether its own code reaches quote() with attacker-influenced input.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Discovery 2discovery/discovery-ui-rhel9:1792603924Fixed 2026-10-28RHSA-2026:91967
Red Hat Discovery 2discovery/discovery-ui-rhel9:1793218530Fixed 2026-10-28RHSA-2026:92136
Red Hat Hardened Imagesjaeger-main-2.20.0-0.11.hum1Fixed 2026-09-21RHSA-2026:69544
Red Hat Hardened Imagesgrafana13-1-main-13.1.6-0.4.hum1Fixed 2026-09-28RHSA-2026:72498
Red Hat Hardened Imagesgrafana13-2-main-13.2.1-0.8.hum1Fixed 2026-09-28RHSA-2026:72507
Red Hat Hardened Imagesprometheus3-13-main-3.13.3-0.2.hum1Fixed 2026-09-28RHSA-2026:72750
Cryostat 4cryostat/cryostat-openshift-console-plugin-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-operator-bundleNot affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel9-operatorNot affected
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-agentic-console-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-419-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-pf5-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel8Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel9Affected
OpenShift Service Mesh 3openshift-service-mesh/kiali-operator-bundleNot affected
OpenShift Service Mesh 3openshift-service-mesh/kiali-rhel9-operatorNot affected
Red Hat AMQ Broker 7amq-broker-bin.zipNot affected
41 more in the JSON and on Red Hat's page.

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-102422.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

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