CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8) in comex shlex. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in shlex 1.3.0.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hshlex (crates.io): fixed in 1.3.0Explain CVE-2024-58266 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-58266?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-58266?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-2024-58266 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| comex shlex | before 1.2.1 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-r7qv-8r2h-pg27 | crates.io | shlex | <1.3.0 | 1.3.0 |
| RUSTSEC-2024-0006 | crates.io | shlex | >=0.0.0-0 <1.3.0 | 1.3.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | rust-shlex | no fix listed | DEBIAN-CVE-2024-58266 |
| Debian | 13, 14 | rust-shlex | 1.3.0-1 | DEBIAN-CVE-2024-58266 |
| Ubuntu | 20.04:LTS, 22.04:LTS, 24.04:LTS and 3 more | rust-shlex | no fix listed | UBUNTU-CVE-2024-58266 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7 | rav1e | 0.6.6-150600.3.6.1 | SUSE-SU-2025:03077-1 |
| SUSE | Linux Micro 6.0 | rust-keylime | 0.2.8+12-1.1 | SUSE-SU-2025:20717-1 |
| SUSE | Linux Micro 6.1 | rust-keylime | 0.2.8+12-slfo.1.1_1.1 | SUSE-SU-2025:20858-1 |
| openSUSE | Leap 15.6 | rav1e | 0.6.6-150600.3.6.1 | SUSE-SU-2025:03077-1 |
| openSUSE | Tumbleweed | framework-inputmodule-control | 0.2.0-3.1 | openSUSE-SU-2025:15433-1 |
| Azure Linux | 2 | kata-containers | no fix listed | AZL-66008 |
| Azure Linux | 2 | rust | no fix listed | AZL-66017 |
| Azure Linux | 3 | rust | 1.75.0-30 | AZL-66029 |
| Azure Linux | 3 | rust | 1.86.0-3 | AZL-66035 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.
Red Hat rates this Low.
This CVE was rated as Low severity. It involves three distinct issues: (1) Failure to quote characters, which can cause a single argument to be interpreted as multiple arguments in a shell, but does not directly allow arbitrary command execution; (2) Handling of null bytes in strings, which cannot be used in Unix command arguments or environment variables, making exploitation in typical environments unlikely; and (3) Lack of escaping for control characters in interactive shells, where writing control characters to the input of an interactive shell could cause misbehavior, though non-interactive shells are unaffected. Exploitation of these issues requires high attack complexity and targeting of uncommon scenarios. The overall impact is limited, and the affected scenarios are constrained in typical usage. Considering the high attack complexity, restricted exploitability, and limited impact, a Low severity rating is appropriate.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Confidential Compute Attestation | confidential-compute-attestation-tech-preview/trustee-rhel9 | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/cluster-logging-operator-bundle | Fix deferred | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/cluster-logging-rhel9-operator | Fix deferred | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/eventrouter-rhel9 | Fix deferred | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/log-file-metric-exporter-rhel9 | Fix deferred | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/vector-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh-dev-preview-beta/istio-ztunnel-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-cni-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-must-gather-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-pilot-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-proxyv2-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-rhel9-operator | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-sail-operator-bundle | Fix deferred | |
| Red Hat Directory Server 11 | redhat-ds:11/389-ds-base | Not affected | |
| Red Hat Discovery 2 | discovery/discovery-server-rhel9 | Not affected | |
| Red Hat Enterprise Linux 10 | 389-ds-base | Not affected | |
| Red Hat Enterprise Linux 10 | aardvark-dns | Not affected | |
| Red Hat Enterprise Linux 10 | bootc | Not affected | |
| Red Hat Enterprise Linux 10 | clevis-pin-tpm2 | Not affected | |
| Red Hat Enterprise Linux 10 | device-mapper-persistent-data | Not affected | |
| 56 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-2024-58266.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.