GHSA-286m-6pg9-v42v: Duplicate Advisory Multiple Issues Involving Quote API Vulnerability

LOW
CVSS 3.2
CWE-116
Published
Advisory Summary

GHSA-286m-6pg9-v42v is a LOW (CVSS 3.2) multiple issues involving quote api vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Duplicate Advisory libraries in the crates.io ecosystem. The issue involves multiple issues involving quote api in shlex. Remediation is available by upgrading affected packages to version 1.3.0.

GHSA-286m-6pg9-v42v at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-286m-6pg9-v42v
Severity LOW
CVSS v3.1 Base Score 3.2
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product Duplicate Advisory
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 3.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-286m-6pg9-v42v

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

shlex fixed: 1.3.0
Upgrade shlex to 1.3.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for shlex

How to Check if You Are Affected

To determine whether your application is affected by GHSA-286m-6pg9-v42v, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for shlex

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-r7qv-8r2h-pg27. This link is maintained to preserve external references. ### Original 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.

GHSA-286m-6pg9-v42v Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
1.3.0
Product / Package Ecosystem Affected Versions Fixed Version
shlex
crates.io
< 1.3.0
1.3.0

References

Frequently Asked Questions

What is GHSA-286m-6pg9-v42v?
GHSA-286m-6pg9-v42v is a security vulnerability in Duplicate Advisory involving Multiple issues involving quote API in shlex under CWE-116: Improper Encoding or Escaping of Output.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 1.3.0 across affected packages: shlex.
What version fixes GHSA-286m-6pg9-v42v?
Upgrading to 1.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is shlex affected?
Yes, shlex is affected in releases prior to 1.3.0. Upgrade your dependency to 1.3.0 or later.
What is the CVSS score of GHSA-286m-6pg9-v42v?
GHSA-286m-6pg9-v42v has a CVSS v3.1 base score of 3.2 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N.
What CWE is associated with GHSA-286m-6pg9-v42v?
GHSA-286m-6pg9-v42v is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check crates.io dependencies for GHSA-286m-6pg9-v42v?
Run the dependency tree command: 'inspect dependencies for shlex'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-286m-6pg9-v42v",
  "modified" : "2025-07-28T15:57:12Z",
  "published" : "2025-07-28T00:30:33Z",
  "withdrawn" : "2025-07-28T15:57:12Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Multiple issues involving quote API in shlex",
  "details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-r7qv-8r2h-pg27. This link is maintained to preserve external references.\n\n### Original Description\nThe shlex crate before 1.2.1 for Rust allows unquoted and unescaped instances of the { and \\xa0 characters, which may facilitate command injection.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "shlex"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/comex/rust-shlex/security/advisories/GHSA-r7qv-8r2h-pg27"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-58266"
  }, {
    "type" : "WEB",
    "url" : "https://crates.io/crates/shlex"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/comex/rust-shlex"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0006.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-28T15:57:12Z",
    "nvd_published_at" : "2025-07-27T22:15:25Z"
  }
}