# CVE-2024-58266: Multiple issues involving quote API in shlex

- Severity: Low 3.2 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2024-01-21T12:00:00.000Z
- Modified: 2026-10-12T18:00:05.115Z
- Also known as: GHSA-r7qv-8r2h-pg27, RUSTSEC-2024-0006
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- comex shlex: before 1.2.1
- shlex (crates.io): before 1.3.0; from 0.0.0-0 before 1.3.0

## Every score

- mitre: CVSS:3.1 3.2 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.2 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://rustsec.org/advisories/RUSTSEC-2024-0006.html> (advisory, third-party-advisory, web)
- <https://github.com/comex/rust-shlex/security/advisories/GHSA-r7qv-8r2h-pg27> (vendor-advisory, web)
- <https://crates.io/crates/shlex> (package, product)
- <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)

## Sources

- CVE List: [CVE-2024-58266](https://www.cve.org/CVERecord?id=CVE-2024-58266), CVE Terms of Use, modified 2025-07-28
- GitHub Advisory Database: [GHSA-r7qv-8r2h-pg27](https://github.com/advisories/GHSA-r7qv-8r2h-pg27), CC-BY-4.0, modified 2025-07-28
- RustSec Advisory Database: [RUSTSEC-2024-0006](https://rustsec.org/advisories/RUSTSEC-2024-0006.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2024-58266](https://nvd.nist.gov/vuln/detail/CVE-2024-58266), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-58266 · Whole record: https://cve.day/CVE-2024-58266.json · Rebuilt by cve.day 2026-11-25T22:58:52.831Z
