CVE-2024-58266 json
Multiple issues involving quote API in shlex
published 2024-01-21 2 y ago modified 2026-10-12 27 d ago also GHSA-r7qv-8r2h-pg27 , RUSTSEC-2024-0006 , EUVD-2024-54826
- cvss
- 3.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
The shlex crate before 1.2.1 for Rust allows unquoted and unescaped instances of the { and \xa0 characters, which may facilitate command injection.
Patch / fix
- crates.io shlex 1.3.0
- comex shlex 1.2.1
- rust-shlex Debian 14, Debian 13 1.3.0-1
debian advisories DEBIAN-CVE-2024-58266
- rust-keylime Linux Micro 6.1 0.2.8+12-slfo.1.1_1.1
- rust-keylime Linux Micro 6.0 0.2.8+12-1.1
- rav1e SLE Module for Basesystem 15 SP7, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 0.6.6-150600.3.6.1
suse advisories SUSE-SU-2025:20858-1SUSE-SU-2025:20717-1SUSE-SU-2025:03077-1
- framework-inputmodule-control openSUSE Tumbleweed 0.2.0-3.1
opensuse advisories openSUSE-SU-2025:15433-1
- rust Azure Linux 3.0 1.75.0-30
- rust Azure Linux 3.0 1.86.0-3
azure linux advisories AZL-66029AZL-66035
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-58266 updated cvss 3.2
shlex: Shlex Command Injection Vulnerability
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/vector-rhel9, openshift-logging/eventrouter-rhel9, openshift-logging/cluster-logging-rhel9-operator, openshift-logging/log-file-metric-exporter-rhel9, openshift-logging/cluster-logging-operator-bundle Red Hat OpenShift Service Mesh 3 openshift-service-mesh/istio-cni-rhel9, openshift-service-mesh/istio-pilot-rhel9, openshift-service-mesh/istio-proxyv2-rhel9, openshift-service-mesh/istio-rhel9-operator, openshift-service-mesh/istio-must-gather-rhel9, openshift-service-mesh/istio-sail-operator-bundle, +1 more Red Hat Enterprise Linux 7 firefox Red Hat Enterprise Linux 8 firefox, thunderbird Red Hat Enterprise Linux 9 gjs, firefox, stratisd, firefox-x11, thunderbird, stratisd-tools, +2 more Red Hat Enterprise Linux 10 gjs, firefox, thunderbirdaffected: workaround, no fix available “Fix deferred”
+1 more productsfewer
Red Hat OpenShift Container Platform 4 conmon-rs, kata-containers -
Red Hat Confidential Compute Attestation confidential-compute-attestation-tech-preview/trustee-rhel9 Red Hat Directory Server 11 389-ds-base Red Hat Discovery 2 discovery/discovery-server-rhel9 Red Hat Enterprise Linux 7 thunderbird Red Hat Enterprise Linux 8 rls, ruby, rust, cargo, clippy, rustfmt, +45 more Red Hat Enterprise Linux 9 ctdb, ruby, rust, bootc, cargo, samba, +79 morenot affected: vulnerable code not present
+6 more productsfewer
Red Hat Enterprise Linux 10 ruby, rust, bootc, samba, papers, netavark, +18 more Red Hat Offline Knowledge Portal offline-knowledge-portal/rhokp-rhel9 Red Hat OpenShift Container Platform 4 bootupd, rust-bootupd Red Hat Satellite 6 satellite/iop-advisor-engine-rhel9 Red Hat Trusted Artifact Signer rhtas/tuffer-rhel9, rhtas/tuftool-rhel9 Red Hat Trusted Profile Analyzer rhtpa/rhtpa-trustification-service-rhel9
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 15 mo ago
Exploit prediction
0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.2 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 3.2 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | shlex | <1.3.0 >=0.0.0-0, <1.3.0 |
1.3.0 |
Affected products
- comex shlex
Classification
- Weakness
-
- CWE-116 Improper Encoding or Escaping of Output
References
-
github.com
/comex/rust-shlex/commit/4a0724b0b62ef715467875b040a890ce75a8a829
web
-
github.com
/comex/rust-shlex/security/advisories/GHSA-r7qv-8r2h-pg27
web, vendor-advisory
-
rustsec.org
/advisories/RUSTSEC-2024-0006.html
web, third-party-advisory, advisory
-
crates.io
/crates/shlex
product, package
-
nvd.nist.gov
/vuln/detail/CVE-2024-58266
advisory
-
github.com
/comex/rust-shlex
package
Sources
- CVE List CVE-2024-58266
- GitHub Advisory GHSA-r7qv-8r2h-pg27
- NVD CVE-2024-58266
- OSV RUSTSEC-2024-0006
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.