CVE-2024-58266 Details
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.
A command injection vulnerability has been identified in the shlex crate for Rust, affecting versions prior to 1.2.1. The issue arises from the failure to properly quote and escape certain characters in command arguments. Specifically, unquoted instances of the '{' character and the non-breaking space character (represented as '\xa0') can lead to command injection by allowing multiple arguments to be injected where only one is expected. This could potentially result in arbitrary command execution, depending on the context.
Users are advised to update the shlex crate to version 1.3.0 or later, which addresses the vulnerability by properly escaping the problematic characters. Version 1.2.1 also provides a minimal fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://crates.io/crates/shlex | [email protected] | Product |
| https://github.com/comex/rust-shlex/security/advisories/GHSA-r7qv-8r2h-pg27 | [email protected] | Vendor Advisory |
| https://rustsec.org/advisories/RUSTSEC-2024-0006.html | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| comex shlex | < 1.2.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 7, 2025 | Initial Analysis | [email protected] |
| Jul 27, 2025 | New CVE Received | [email protected] |