CVEfocus › CVE database › CVE-2024-58266

CVE-2024-58266

CVSS 3.2 LowEPSS 1.3% (higher than 71% of CVEs)Published 2025-07-27Updated 2025-07-28Assigner: mitre

The shlex crate before 1.2.1 for Rust allows unquoted and unescaped instances of the { and \xa0 characters, which may facilitate command injection.

CWE-116

What to do

Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
19Fix pending
3Under investigation
1Will not fix
307Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10rust-shlexFix pendingUBUNTU-CVE-2024-58266
Ubuntu 26.04rust-shlexUnder investigationUBUNTU-CVE-2024-58266
Ubuntu 25.10rust-shlexWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-58266
Ubuntu 24.04rust-shlexUnder investigationUBUNTU-CVE-2024-58266
Ubuntu 22.04rust-shlexUnder investigationUBUNTU-CVE-2024-58266
Ubuntu 20.04rust-shlexFix pendingUBUNTU-CVE-2024-58266
Debian 14rust-shlexFixed1.3.0-1DEBIAN-CVE-2024-58266
Debian 13rust-shlexFixed1.3.0-1DEBIAN-CVE-2024-58266
Debian 12rust-shlexFix pendingDEBIAN-CVE-2024-58266
Red Hat Enterprise Linux 10389-ds-baseNot affected
Red Hat Enterprise Linux 10389-ds-base-bdbNot affected
Red Hat Enterprise Linux 10389-ds-base-develNot affected
Red Hat Enterprise Linux 10389-ds-base-libsNot affected
Red Hat Enterprise Linux 10389-ds-base-snmpNot affected
Red Hat Enterprise Linux 10aardvark-dnsNot affected
Red Hat Enterprise Linux 10afterburnNot affected
Red Hat Enterprise Linux 10afterburn-dracutNot affected
Red Hat Enterprise Linux 10bindgen-cliNot affected
Red Hat Enterprise Linux 10bootcNot affected
Red Hat Enterprise Linux 10bootupdNot affected
Red Hat Enterprise Linux 10cargoNot affected
Red Hat Enterprise Linux 10clevis-pin-tpm2Not affected
Red Hat Enterprise Linux 10clippyNot affected
Red Hat Enterprise Linux 10device-mapper-persistent-dataNot affected
Red Hat Enterprise Linux 10fdo-admin-cliNot affected
Red Hat Enterprise Linux 10fdo-clientNot affected
Red Hat Enterprise Linux 10fdo-initNot affected
Red Hat Enterprise Linux 10fdo-manufacturing-serverNot affected
Red Hat Enterprise Linux 10fdo-owner-cliNot affected
Red Hat Enterprise Linux 10fdo-owner-onboarding-serverNot affected
Red Hat Enterprise Linux 10fdo-rendezvous-serverNot affected
Red Hat Enterprise Linux 10firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 10gjsFix pending
Fix deferred
Red Hat Enterprise Linux 10gjs-develFix pending
Fix deferred
Red Hat Enterprise Linux 10glycin-loadersNot affected
Red Hat Enterprise Linux 10keylime-agent-rustNot affected
Red Hat Enterprise Linux 10keylime-agent-rust-commonNot affected
Red Hat Enterprise Linux 10keylime-agent-rust-ima-emulatorNot affected
Red Hat Enterprise Linux 10keylime-agent-rust-pushNot affected
Red Hat Enterprise Linux 10ldb-toolsNot affected
Red Hat Enterprise Linux 10libldbNot affected
Red Hat Enterprise Linux 10libldb-develNot affected
Red Hat Enterprise Linux 10libnetapiNot affected
Red Hat Enterprise Linux 10libnetapi-develNot affected
Red Hat Enterprise Linux 10libsmbclientNot affected
Red Hat Enterprise Linux 10libsmbclient-develNot affected
Red Hat Enterprise Linux 10libwbclientNot affected
Red Hat Enterprise Linux 10libwbclient-develNot affected
Red Hat Enterprise Linux 10netavarkNot affected
Red Hat Enterprise Linux 10papersNot affected
Red Hat Enterprise Linux 10papers-develNot affected
Red Hat Enterprise Linux 10papers-libsNot affected
Red Hat Enterprise Linux 10papers-nautilusNot affected
Red Hat Enterprise Linux 10papers-previewerNot affected
Red Hat Enterprise Linux 10papers-thumbnailerNot affected
Red Hat Enterprise Linux 10python3-ldbNot affected
Red Hat Enterprise Linux 10python3-lib389Not affected
Red Hat Enterprise Linux 10python3-sambaNot affected
Red Hat Enterprise Linux 10python3-samba-dcNot affected
Red Hat Enterprise Linux 10python3-samba-testNot affected
Red Hat Enterprise Linux 10rpm-ostreeNot affected
Red Hat Enterprise Linux 10rpm-ostree-libsNot affected
Red Hat Enterprise Linux 10rpm-sequoiaNot affected
Red Hat Enterprise Linux 10rpm-sequoia-develNot affected
Red Hat Enterprise Linux 10rubyNot affected
Red Hat Enterprise Linux 10ruby-bundled-gemsNot affected
Red Hat Enterprise Linux 10ruby-default-gemsNot affected
Red Hat Enterprise Linux 10ruby-develNot affected
Red Hat Enterprise Linux 10ruby-docNot affected
Red Hat Enterprise Linux 10ruby-libsNot affected
Red Hat Enterprise Linux 10rubygem-bigdecimalNot affected
Red Hat Enterprise Linux 10rubygem-bundlerNot affected
Red Hat Enterprise Linux 10rubygem-io-consoleNot affected
Red Hat Enterprise Linux 10rubygem-irbNot affected
Red Hat Enterprise Linux 10rubygem-jsonNot affected
Red Hat Enterprise Linux 10rubygem-minitestNot affected
Red Hat Enterprise Linux 10rubygem-power_assertNot affected
Red Hat Enterprise Linux 10rubygem-psychNot affected
Red Hat Enterprise Linux 10rubygem-raccNot affected
Red Hat Enterprise Linux 10rubygem-rakeNot affected
Red Hat Enterprise Linux 10rubygem-rbsNot affected
Red Hat Enterprise Linux 10rubygem-rdocNot affected
Red Hat Enterprise Linux 10rubygem-rexmlNot affected
Red Hat Enterprise Linux 10rubygem-rssNot affected
Red Hat Enterprise Linux 10rubygem-test-unitNot affected
Red Hat Enterprise Linux 10rubygem-typeprofNot affected
Red Hat Enterprise Linux 10rubygemsNot affected
Red Hat Enterprise Linux 10rubygems-develNot affected
Red Hat Enterprise Linux 10rustNot affected
Red Hat Enterprise Linux 10rust-analyzerNot affected
Red Hat Enterprise Linux 10rust-debugger-commonNot affected
Red Hat Enterprise Linux 10rust-docNot affected
Red Hat Enterprise Linux 10rust-gdbNot affected
Red Hat Enterprise Linux 10rust-lldbNot affected
Red Hat Enterprise Linux 10rust-rpm-sequoiaNot affected
Red Hat Enterprise Linux 10rust-sequoia-sqNot affected
Red Hat Enterprise Linux 10rust-sequoia-sqvNot affected
Red Hat Enterprise Linux 10rust-srcNot affected
Red Hat Enterprise Linux 10rust-std-staticNot affected
Red Hat Enterprise Linux 10rust-std-static-aarch64-unknown-none-softfloatNot affected
Red Hat Enterprise Linux 10rust-std-static-wasm32-unknown-unknownNot affected
Red Hat Enterprise Linux 10rust-std-static-wasm32-wasip1Not affected
Red Hat Enterprise Linux 10rust-std-static-x86_64-unknown-noneNot affected
Red Hat Enterprise Linux 10rust-toolsetNot affected
Red Hat Enterprise Linux 10rust-toolset-srpm-macrosNot affected
Red Hat Enterprise Linux 10rustfmtNot affected
Red Hat Enterprise Linux 10s390utilsNot affected
Red Hat Enterprise Linux 10s390utils-baseNot affected
Red Hat Enterprise Linux 10s390utils-chreipl-fcp-mpathNot affected
Red Hat Enterprise Linux 10s390utils-cmsfs-fuseNot affected
Red Hat Enterprise Linux 10s390utils-coreNot affected
Red Hat Enterprise Linux 10s390utils-cpacfstatsdNot affected
Red Hat Enterprise Linux 10s390utils-cpuplugdNot affected
Red Hat Enterprise Linux 10s390utils-develNot affected
Red Hat Enterprise Linux 10s390utils-hmcdrvfsNot affected
Red Hat Enterprise Linux 10s390utils-iucvtermNot affected
Red Hat Enterprise Linux 10s390utils-mon_statdNot affected
Red Hat Enterprise Linux 10s390utils-osasnmpdNot affected
Red Hat Enterprise Linux 10s390utils-se-dataNot affected
Red Hat Enterprise Linux 10s390utils-zdsfsNot affected
Red Hat Enterprise Linux 10s390utils-ziomonNot affected
Red Hat Enterprise Linux 10sambaNot affected
Red Hat Enterprise Linux 10samba-clientNot affected
Red Hat Enterprise Linux 10samba-client-libsNot affected
Red Hat Enterprise Linux 10samba-commonNot affected
Red Hat Enterprise Linux 10samba-common-libsNot affected
Red Hat Enterprise Linux 10samba-common-toolsNot affected
Red Hat Enterprise Linux 10samba-dc-libsNot affected
Red Hat Enterprise Linux 10samba-dcerpcNot affected
Red Hat Enterprise Linux 10samba-develNot affected
Red Hat Enterprise Linux 10samba-gpupdateNot affected
Red Hat Enterprise Linux 10samba-krb5-printingNot affected
Red Hat Enterprise Linux 10samba-ldb-ldap-modulesNot affected
Red Hat Enterprise Linux 10samba-libsNot affected
Red Hat Enterprise Linux 10samba-pidlNot affected
Red Hat Enterprise Linux 10samba-testNot affected
Red Hat Enterprise Linux 10samba-test-libsNot affected
Red Hat Enterprise Linux 10samba-toolsNot affected
Red Hat Enterprise Linux 10samba-usersharesNot affected
Red Hat Enterprise Linux 10samba-vfs-iouringNot affected
Red Hat Enterprise Linux 10samba-winbindNot affected
Red Hat Enterprise Linux 10samba-winbind-clientsNot affected
Red Hat Enterprise Linux 10samba-winbind-krb5-locatorNot affected
Red Hat Enterprise Linux 10samba-winbind-modulesNot affected
Red Hat Enterprise Linux 10samba-winexeNot affected
Red Hat Enterprise Linux 10sequoia-sqNot affected
Red Hat Enterprise Linux 10sequoia-sqvNot affected
Red Hat Enterprise Linux 10snpguestNot affected
Red Hat Enterprise Linux 10stratisdNot affected
Red Hat Enterprise Linux 10stratisd-dracutNot affected
Red Hat Enterprise Linux 10stratisd-toolsNot affected
Red Hat Enterprise Linux 10system-reinstall-bootcNot affected
Red Hat Enterprise Linux 10thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 10trustee-guest-componentsNot affected
Red Hat Enterprise Linux 9389-ds-baseNot affected
Red Hat Enterprise Linux 9389-ds-base-develNot affected
Red Hat Enterprise Linux 9389-ds-base-libsNot affected
Red Hat Enterprise Linux 9389-ds-base-snmpNot affected
Red Hat Enterprise Linux 9aardvark-dnsNot affected
Red Hat Enterprise Linux 9bindgen-cliNot affected
Red Hat Enterprise Linux 9bootcNot affected
Red Hat Enterprise Linux 9bootupdNot affected
Red Hat Enterprise Linux 9cargoNot affected
Red Hat Enterprise Linux 9clippyNot affected
Red Hat Enterprise Linux 9ctdbNot affected
Red Hat Enterprise Linux 9firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 9firefox-x11Fix pending
Fix deferred
Red Hat Enterprise Linux 9gjsFix pending
Fix deferred
Red Hat Enterprise Linux 9gjs-develFix pending
Fix deferred
Red Hat Enterprise Linux 9keylime-agent-rustFix pending
Fix deferred
Red Hat Enterprise Linux 9ldb-toolsNot affected
Red Hat Enterprise Linux 9libldbNot affected
Red Hat Enterprise Linux 9libldb-develNot affected
Red Hat Enterprise Linux 9libnetapiNot affected
Red Hat Enterprise Linux 9libnetapi-develNot affected
Red Hat Enterprise Linux 9libsmbclientNot affected
Red Hat Enterprise Linux 9libsmbclient-develNot affected
Red Hat Enterprise Linux 9libwbclientNot affected
Red Hat Enterprise Linux 9libwbclient-develNot affected
Red Hat Enterprise Linux 9netavarkNot affected
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 9python3-ldbNot affected
Red Hat Enterprise Linux 9python3-lib389Not affected
Red Hat Enterprise Linux 9python3-sambaNot affected
Red Hat Enterprise Linux 9python3-samba-dcNot affected
Red Hat Enterprise Linux 9python3-samba-develNot affected
Red Hat Enterprise Linux 9python3-samba-testNot affected
Red Hat Enterprise Linux 9rpm-ostreeNot affected
Red Hat Enterprise Linux 9rpm-ostree-develNot affected
Red Hat Enterprise Linux 9rpm-ostree-libsNot affected
Red Hat Enterprise Linux 9rpm-sequoiaNot affected
Red Hat Enterprise Linux 9rpm-sequoia-develNot affected
Red Hat Enterprise Linux 9rubyNot affected
Red Hat Enterprise Linux 9ruby-default-gemsNot affected
Red Hat Enterprise Linux 9ruby-develNot affected
Red Hat Enterprise Linux 9ruby-docNot affected
Red Hat Enterprise Linux 9ruby-libsNot affected
Red Hat Enterprise Linux 9rubygem-bigdecimalNot affected
Red Hat Enterprise Linux 9rubygem-bundlerNot affected
Red Hat Enterprise Linux 9rubygem-io-consoleNot affected
Red Hat Enterprise Linux 9rubygem-irbNot affected
Red Hat Enterprise Linux 9rubygem-jsonNot affected
Red Hat Enterprise Linux 9rubygem-minitestNot affected
Red Hat Enterprise Linux 9rubygem-power_assertNot affected
Red Hat Enterprise Linux 9rubygem-psychNot affected
Red Hat Enterprise Linux 9rubygem-rakeNot affected
Red Hat Enterprise Linux 9rubygem-rbsNot affected
Red Hat Enterprise Linux 9rubygem-rdocNot affected
Red Hat Enterprise Linux 9rubygem-rexmlNot affected
Red Hat Enterprise Linux 9rubygem-rssNot affected
Red Hat Enterprise Linux 9rubygem-test-unitNot affected
Red Hat Enterprise Linux 9rubygem-typeprofNot affected
Red Hat Enterprise Linux 9rubygemsNot affected
Red Hat Enterprise Linux 9rubygems-develNot affected
Red Hat Enterprise Linux 9rustNot affected
Red Hat Enterprise Linux 9rust-analysisNot affected
Red Hat Enterprise Linux 9rust-analyzerNot affected
Red Hat Enterprise Linux 9rust-bootupdNot affected
Red Hat Enterprise Linux 9rust-debugger-commonNot affected
Red Hat Enterprise Linux 9rust-docNot affected
Red Hat Enterprise Linux 9rust-gdbNot affected
Red Hat Enterprise Linux 9rust-lldbNot affected
Red Hat Enterprise Linux 9rust-rpm-sequoiaNot affected
Red Hat Enterprise Linux 9rust-srcNot affected
Red Hat Enterprise Linux 9rust-std-staticNot affected
Red Hat Enterprise Linux 9rust-std-static-wasm32-unknown-unknownNot affected
Red Hat Enterprise Linux 9rust-std-static-wasm32-wasiNot affected
Red Hat Enterprise Linux 9rust-std-static-wasm32-wasip1Not affected
Red Hat Enterprise Linux 9rust-toolsetNot affected
Red Hat Enterprise Linux 9rustfmtNot affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat Enterprise Linux 9samba-clientNot affected
Red Hat Enterprise Linux 9samba-client-libsNot affected
Red Hat Enterprise Linux 9samba-commonNot affected
Red Hat Enterprise Linux 9samba-common-libsNot affected
Red Hat Enterprise Linux 9samba-common-toolsNot affected
Red Hat Enterprise Linux 9samba-dc-libsNot affected
Red Hat Enterprise Linux 9samba-dcerpcNot affected
Red Hat Enterprise Linux 9samba-develNot affected
Red Hat Enterprise Linux 9samba-gpupdateNot affected
Red Hat Enterprise Linux 9samba-krb5-printingNot affected
Red Hat Enterprise Linux 9samba-ldb-ldap-modulesNot affected
Red Hat Enterprise Linux 9samba-libsNot affected
Red Hat Enterprise Linux 9samba-pidlNot affected
Red Hat Enterprise Linux 9samba-testNot affected
Red Hat Enterprise Linux 9samba-test-libsNot affected
Red Hat Enterprise Linux 9samba-toolsNot affected
Red Hat Enterprise Linux 9samba-usersharesNot affected
Red Hat Enterprise Linux 9samba-vfs-iouringNot affected
Red Hat Enterprise Linux 9samba-winbindNot affected
Red Hat Enterprise Linux 9samba-winbind-clientsNot affected
Red Hat Enterprise Linux 9samba-winbind-krb5-locatorNot affected
Red Hat Enterprise Linux 9samba-winbind-modulesNot affected
Red Hat Enterprise Linux 9samba-winexeNot affected
Red Hat Enterprise Linux 9snpguestNot affected
Red Hat Enterprise Linux 9stratisdFix pending
Fix deferred
Red Hat Enterprise Linux 9stratisd-dracutFix pending
Fix deferred
Red Hat Enterprise Linux 9stratisd-toolsFix pending
Fix deferred
Red Hat Enterprise Linux 9system-reinstall-bootcNot affected
Red Hat Enterprise Linux 9thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 9trustee-guest-componentsNot affected
Red Hat Enterprise Linux 8389-ds-baseNot affected
Red Hat Enterprise Linux 8389-ds-base-develNot affected
Red Hat Enterprise Linux 8389-ds-base-legacy-toolsNot affected
Red Hat Enterprise Linux 8389-ds-base-libsNot affected
Red Hat Enterprise Linux 8389-ds-base-snmpNot affected
Red Hat Enterprise Linux 8cargoNot affected
Red Hat Enterprise Linux 8cargo-docNot affected
Red Hat Enterprise Linux 8clippyNot affected
Red Hat Enterprise Linux 8cockpit-389-dsNot affected
Red Hat Enterprise Linux 8firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 8python3-lib389Not affected
Red Hat Enterprise Linux 8rlsNot affected
Red Hat Enterprise Linux 8rubyNot affected
Red Hat Enterprise Linux 8ruby-bundled-gemsNot affected
Red Hat Enterprise Linux 8ruby-default-gemsNot affected
Red Hat Enterprise Linux 8ruby-develNot affected
Red Hat Enterprise Linux 8ruby-docNot affected
Red Hat Enterprise Linux 8ruby-irbNot affected
Red Hat Enterprise Linux 8ruby-libsNot affected
Red Hat Enterprise Linux 8rubygem-abrtNot affected
Red Hat Enterprise Linux 8rubygem-abrt-docNot affected
Red Hat Enterprise Linux 8rubygem-bigdecimalNot affected
Red Hat Enterprise Linux 8rubygem-bsonNot affected
Red Hat Enterprise Linux 8rubygem-bson-docNot affected
Red Hat Enterprise Linux 8rubygem-bundlerNot affected
Red Hat Enterprise Linux 8rubygem-bundler-docNot affected
Red Hat Enterprise Linux 8rubygem-did_you_meanNot affected
Red Hat Enterprise Linux 8rubygem-io-consoleNot affected
Red Hat Enterprise Linux 8rubygem-irbNot affected
Red Hat Enterprise Linux 8rubygem-jsonNot affected
Red Hat Enterprise Linux 8rubygem-minitestNot affected
Red Hat Enterprise Linux 8rubygem-mongoNot affected
Red Hat Enterprise Linux 8rubygem-mongo-docNot affected
Red Hat Enterprise Linux 8rubygem-mysql2Not affected
Red Hat Enterprise Linux 8rubygem-mysql2-docNot affected
Red Hat Enterprise Linux 8rubygem-net-telnetNot affected
Red Hat Enterprise Linux 8rubygem-opensslNot affected
Red Hat Enterprise Linux 8rubygem-pgNot affected
Red Hat Enterprise Linux 8rubygem-pg-docNot affected
Red Hat Enterprise Linux 8rubygem-power_assertNot affected
Red Hat Enterprise Linux 8rubygem-psychNot affected
Red Hat Enterprise Linux 8rubygem-raccNot affected
Red Hat Enterprise Linux 8rubygem-rakeNot affected
Red Hat Enterprise Linux 8rubygem-rbsNot affected
Red Hat Enterprise Linux 8rubygem-rdocNot affected
Red Hat Enterprise Linux 8rubygem-rexmlNot affected
Red Hat Enterprise Linux 8rubygem-rssNot affected
Red Hat Enterprise Linux 8rubygem-test-unitNot affected
Red Hat Enterprise Linux 8rubygem-typeprofNot affected
Red Hat Enterprise Linux 8rubygem-xmlrpcNot affected
Red Hat Enterprise Linux 8rubygemsNot affected
Red Hat Enterprise Linux 8rubygems-develNot affected
Red Hat Enterprise Linux 8rustNot affected
Red Hat Enterprise Linux 8rust-analysisNot affected
Red Hat Enterprise Linux 8rust-analyzerNot affected
Red Hat Enterprise Linux 8rust-debugger-commonNot affected
Red Hat Enterprise Linux 8rust-docNot affected
Red Hat Enterprise Linux 8rust-gdbNot affected
Red Hat Enterprise Linux 8rust-lldbNot affected
Red Hat Enterprise Linux 8rust-srcNot affected
Red Hat Enterprise Linux 8rust-std-staticNot affected
Red Hat Enterprise Linux 8rust-std-static-wasm32-unknown-unknownNot affected
Red Hat Enterprise Linux 8rust-std-static-wasm32-wasiNot affected
Red Hat Enterprise Linux 8rust-toolsetNot affected
Red Hat Enterprise Linux 8rustfmtNot affected
Red Hat Enterprise Linux 8thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 7firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 7thunderbirdNot affected
crates.io libraryshlexFixed1.3.0GHSA-r7qv-8r2h-pg27

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.