Skip to content
Heist/ feed
Back to feed
Critical

rust-shlex — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-58266

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

Products
rust-shlex
Affected versions
0.1.1-1, 1.1.0-1, 1.2.0-1, 1.3.0-1
Fixed versions
Not specified
CVEs
CVE-2024-58266
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:30 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-58266

core-osv · Original source

Published 27 Jul 2025, 22:15 UTC

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

osv:UBUNTU-CVE-2024-58266

rust-shlex

Fixed versions: Not specified

rust-shlex

Fixed versions: Not specified

rust-shlex

Fixed versions: Not specified

rust-shlex

Fixed versions: Not specified

rust-shlex

Fixed versions: Not specified

rust-shlex

Fixed versions: Not specified

Complete source record
{
  "id": "86da35bfe599e0326388e9692d7caab3eb4a8d40b3cf9679915ee09653de69d1",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-58266",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-58266",
    "summary": "The shlex crate before 1.2.1 for Rust allows unquoted and unescaped instances of the { and \\xa0 characters, which may facilitate command injection.",
    "evidence": "osv:UBUNTU-CVE-2024-58266",
    "products": [
      {
        "name": {
          "value": "rust-shlex",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-shlex",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1.1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-shlex",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.2.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.3.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-shlex",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.0-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-shlex",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.0-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-shlex",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2024-58266",
      "aliases": [
        "UBUNTU-CVE-2024-58266"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-shlex",
            "purl": "pkg:deb/ubuntu/rust-shlex?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.1.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58266.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-shlex-dev",
                "binary_version": "0.1.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-shlex",
            "purl": "pkg:deb/ubuntu/rust-shlex?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.1.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58266.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-shlex-dev",
                "binary_version": "0.1.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-shlex",
            "purl": "pkg:deb/ubuntu/rust-shlex?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.1.0-1",
            "1.2.0-1",
            "1.3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58266.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-shlex-dev",
                "binary_version": "1.3.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-shlex",
            "purl": "pkg:deb/ubuntu/rust-shlex?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58266.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-shlex-dev",
                "binary_version": "1.3.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-shlex",
            "purl": "pkg:deb/ubuntu/rust-shlex?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58266.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-shlex-dev",
                "binary_version": "1.3.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-shlex",
            "purl": "pkg:deb/ubuntu/rust-shlex?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58266.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-shlex-dev",
                "binary_version": "1.3.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:58.845075573Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-58266"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-58266",
        "https://www.cve.org/CVERecord?id=CVE-2024-58266",
        "https://crates.io/crates/shlex",
        "https://github.com/comex/rust-shlex/security/advisories/GHSA-r7qv-8r2h-pg27",
        "https://rustsec.org/advisories/RUSTSEC-2024-0006.html"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-58266",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 356595,
  "published_at": "2025-07-27T22:15:00+00:00"
}