CVE-2026-9277: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in shell-quote
shell-quote's `quote()` function did not validate object-token inputs against the operator model used by `parse()`. The `.op` field was backslash-escaped character by character using `/(.)/g`, which in JavaScript does not match line terminators (\n, \r, U+2028, U+2029). A line terminator in `.op` therefore passed through unescaped into the output; POSIX shells treat a literal newline as a command separator, so any content after it would execute as a second command. The vulnerable code path is reachable in two ways: (1) direct construction of `{ op: '...\n...' }` from external input, and (2) via `parse(cmd, envFn)` when `envFn` returns object tokens whose `.op` is attacker-influenced. Both are documented API surface. Fixed by replacing the per-character escape with strict shape validation: `.op` must match the parser's control-operator allowlist; `{ op: 'glob', pattern }` validates `pattern` and forbids line terminators; `{ comment }` validates `comment` and forbids line terminators; any other object shape throws `TypeError`.
AI Analysis
Technical Summary
CVE-2026-9277 affects Kiali 1.73.32 in Red Hat OpenShift Service Mesh 2.6 and is caused by command injection via unescaped line terminators in the shell-quote component. This flaw enables arbitrary code execution remotely without requiring privileges or user interaction. The vulnerability is identified in the openshift-service-mesh/kiali-rhel8 and kiali-ossmc-rhel8 container images. Red Hat Product Security has rated this update as having a Moderate security impact, although the CVSS vector indicates a high severity (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H). The advisory references updated container images and documentation for remediation but does not explicitly list a fixed version number. No known exploits in the wild have been reported. Users of Red Hat OpenShift Service Mesh 2.6 should review the advisory and update accordingly.
Potential Impact
The vulnerability allows remote attackers to execute arbitrary code on affected Kiali components via command injection due to improper handling of line terminators. This can lead to full compromise of the affected service mesh observability component, impacting confidentiality, integrity, and availability. The CVSS vector indicates high impact on confidentiality, integrity, and availability, but Red Hat rates the overall impact as Moderate. No known active exploitation has been reported.
Mitigation Recommendations
Red Hat has released updated container images for Kiali 1.73.32 addressing this vulnerability. Users should update to the latest Kiali 1.73.32 images for Red Hat OpenShift Service Mesh 2.6 as documented in the official Red Hat advisory and product documentation. Refer to https://access.redhat.com/errata/RHSA-2026:26072 and https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/service_mesh/service-mesh-2-x for detailed upgrade instructions. No additional mitigations are specified by the vendor. Patch status is not explicitly confirmed as fixed in a specific version, so users must follow vendor guidance and update images accordingly.
CVE-2026-9277: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in shell-quote
Description
shell-quote's `quote()` function did not validate object-token inputs against the operator model used by `parse()`. The `.op` field was backslash-escaped character by character using `/(.)/g`, which in JavaScript does not match line terminators (\n, \r, U+2028, U+2029). A line terminator in `.op` therefore passed through unescaped into the output; POSIX shells treat a literal newline as a command separator, so any content after it would execute as a second command. The vulnerable code path is reachable in two ways: (1) direct construction of `{ op: '...\n...' }` from external input, and (2) via `parse(cmd, envFn)` when `envFn` returns object tokens whose `.op` is attacker-influenced. Both are documented API surface. Fixed by replacing the per-character escape with strict shape validation: `.op` must match the parser's control-operator allowlist; `{ op: 'glob', pattern }` validates `pattern` and forbids line terminators; `{ comment }` validates `comment` and forbids line terminators; any other object shape throws `TypeError`.
CVSS v3.1
Score 8.1high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-9277 affects Kiali 1.73.32 in Red Hat OpenShift Service Mesh 2.6 and is caused by command injection via unescaped line terminators in the shell-quote component. This flaw enables arbitrary code execution remotely without requiring privileges or user interaction. The vulnerability is identified in the openshift-service-mesh/kiali-rhel8 and kiali-ossmc-rhel8 container images. Red Hat Product Security has rated this update as having a Moderate security impact, although the CVSS vector indicates a high severity (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H). The advisory references updated container images and documentation for remediation but does not explicitly list a fixed version number. No known exploits in the wild have been reported. Users of Red Hat OpenShift Service Mesh 2.6 should review the advisory and update accordingly.
Potential Impact
The vulnerability allows remote attackers to execute arbitrary code on affected Kiali components via command injection due to improper handling of line terminators. This can lead to full compromise of the affected service mesh observability component, impacting confidentiality, integrity, and availability. The CVSS vector indicates high impact on confidentiality, integrity, and availability, but Red Hat rates the overall impact as Moderate. No known active exploitation has been reported.
Mitigation Recommendations
Red Hat has released updated container images for Kiali 1.73.32 addressing this vulnerability. Users should update to the latest Kiali 1.73.32 images for Red Hat OpenShift Service Mesh 2.6 as documented in the official Red Hat advisory and product documentation. Refer to https://access.redhat.com/errata/RHSA-2026:26072 and https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/service_mesh/service-mesh-2-x for detailed upgrade instructions. No additional mitigations are specified by the vendor. Patch status is not explicitly confirmed as fixed in a specific version, so users must follow vendor guidance and update images accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2026:26072
- Cve Count
- 1
- Additional Cves
- []
- Cvss Version
- null
Threat ID: 6a3088160b89be6888b7520d
Added to database: 06/15/2026, 23:17:42 UTC
Last enriched: 07/26/2026, 01:32:04 UTC
Last updated: 07/31/2026, 19:30:14 UTC
Views: 123
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.