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

Low 3.2 Published Updated

Attackers can inject commands via unquoted special characters in the shlex Rust library, potentially leading to code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-58266?

CVE-2024-58266 is a low-severity command injection vulnerability in comex shlex, published on 27 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-116

Which versions are affected by CVE-2024-58266?

3 open source packages ship an affected version, including shlex. It affects 1 product.

PackageAffectedFixed in
shlex crates.ioAll versions1.3.0
shlex crates.ioAll versions1.3.0
shlex crates.ioFrom 0.0.0-01.3.0
Linux distribution packages (3)
rav1e SUSE:Linux Enterprise Module for Basesystem 15 SP6All versions0.6.6-150600.3.6.1
rav1e SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions0.6.6-150600.3.6.1
rav1e openSUSE:Leap 15.6All versions0.6.6-150600.3.6.1

Products include Comex Shlex.

How do I fix CVE-2024-58266?

Upgrade shlex to 1.3.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2024-58266 being exploited?

There is no known exploitation of CVE-2024-58266 in the wild and no public exploit code.

Sources

Also known as AZL-66008, AZL-66017, AZL-66029, AZL-66035, DEBIAN-CVE-2024-58266, GHSA-r7qv-8r2h-pg27 and 4 more.

Is CVE-2024-58266 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free