What’s Vulnerable › Vulnerabilities
CVE-2024-58266: Multiple issues involving quote API in shlex
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-07-27 · updated 2026-06-17
- Weakness: CWE-116
Description
The shlex crate before 1.2.1 for Rust allows unquoted and unescaped instances of the { and \xa0 characters, which may facilitate command injection.
Affected products
- comex shlex: before 1.2.1 — fixed in 1.2.1
- Crates.Io Shlex: from 0.0.0-0 before 1.3.0 — fixed in 1.3.0
How to fix
Upgrade to a fixed version: comex shlex 1.2.1; Crates.Io Shlex 1.3.0. Check the vendor advisory for mitigations.
References
- https://crates.io/crates/shlex
- https://github.com/comex/rust-shlex/security/advisories/GHSA-r7qv-8r2h-pg27
- https://rustsec.org/advisories/RUSTSEC-2024-0006.html
Get alerted when CVE-2024-58266 or the next vulnerability affects your stack