CVE-2024-58266
CRITICAL 9.8CVSS 3.1Multiple issues involving quote API in shlex
The shlex crate before 1.2.1 for Rust allows unquoted and unescaped instances of the { and \xa0 characters, which may facilitate command injection.
- Published
- 27 Jul 2025
- Last modified
- 12 Oct 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-116
- Also known as
- GHSA-r7qv-8r2h-pg27RUSTSEC-2024-0006
- Sources
- NVDJSONOSV GHSA-r7qv-8r2h-pg27JSONOSV RUSTSEC-2024-0006JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | LOW 3.2 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.2 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | comex | shlexcpe:2.3:a:comex:shlex:*:*:*:*:*:rust:*:* |
< 1.2.1 | 1.2.1 |
| OSV | crates.io | shlex | < 1.3.0 | 1.3.0 |
| OSV | crates.io | shlex | >= 0.0.0-0, < 1.3.0 | 1.3.0 |
References
- https://crates.io/crates/shlex · Product, PACKAGE
- https://github.com/comex/rust-shlex/security/advisories/GHSA-r7qv-8r2h-pg27 · Vendor Advisory, WEB
- https://rustsec.org/advisories/RUSTSEC-2024-0006.html · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-58266 · ADVISORY
- https://github.com/comex/rust-shlex · PACKAGE
- https://github.com/comex/rust-shlex/commit/4a0724b0b62ef715467875b040a890ce75a8a829 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 27 Jul 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Jan 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Jan 2024)