{
  "cveId": "CVE-2024-45405",
  "url": "https://patchblox.com/security/cve/CVE-2024-45405",
  "summary": "CVE-2024-45405 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2024-45405, released September 6, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "rust-gix-path: \u0060gix-path\u0060 is a crate of the \u0060gitoxide\u0060 project (an implementation of \u0060git\u0060 written in Rust) dealing paths and their...",
  "description": "\u0060gix-path\u0060 is a crate of the \u0060gitoxide\u0060 project (an implementation of \u0060git\u0060 written in Rust) dealing paths and their conversions. Prior to version 0.10.11, \u0060gix-path\u0060 runs \u0060git\u0060 to find the path of a configuration file associated with the \u0060git\u0060 installation, but improperly resolves paths containing unusual or non-ASCII characters, in rare cases enabling a local attacker to inject configuration leading to code execution. Version 0.10.11 contains a patch for the issue.  In \u0060gix_path::env\u0060, the underlying implementation of the \u0060installation_config\u0060 and \u0060installation_config_prefix\u0060 functions calls \u0060git config -l --show-origin\u0060 to find the path of a file to treat as belonging to the \u0060git\u0060 installation. Affected versions of \u0060gix-path\u0060 do not pass \u0060-z\u0060/\u0060--null\u0060 to cause \u0060git\u0060 to report literal paths. Instead, to cover the occasional case that \u0060git\u0060 outputs a quoted path, they attempt to parse the path by stripping the quotation marks. The problem is that, when a path is quoted, it may change in substantial ways beyond the concatenation of quotation marks. If not reversed, these changes can result in another valid path that is not equivalent to the original.  On a single-user system, it is not possible to exploit this, unless \u0060GIT_CONFIG_SYSTEM\u0060 and \u0060GIT_CONFIG_GLOBAL\u0060 have been set to unusual values or Git has been installed in an unusual way. Such a scenario is not expected. Exploitation is unlikely even on a multi-user system, though it is plausible in some uncommon configurations or use cases. In general, exploitation is more likely to succeed if users are expected to install \u0060git\u0060 themselves, and are likely to do so in predictable locations; locations where \u0060git\u0060 is installed, whether due to usernames in their paths or otherwise, contain characters that \u0060git\u0060 quotes by default in paths, such as non-English letters and accented letters; a custom \u0060system\u0060-scope configuration file is specified with the \u0060GIT_CONFIG_SYSTEM\u0060 environment variable, and its path is in an unusual location or has strangely named components; or a \u0060system\u0060-scope configuration file is absent, empty, or suppressed by means other than \u0060GIT_CONFIG_NOSYSTEM\u0060. Currently, \u0060gix-path\u0060 can treat a \u0060global\u0060-scope configuration file as belonging to the installation if no higher scope configuration file is available. This increases the likelihood of exploitation even on a system where \u0060git\u0060 is installed system-wide in an ordinary way. However, exploitation is expected to be very difficult even under any combination of those factors.",
  "published": "2024-09-06T13:15:05Z",
  "severity": "medium",
  "cvss": 6,
  "cvssVector": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N",
  "epss": 0.00257,
  "epssPercentile": 0.17401,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "cargo-c",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "0.10.3~git0.ee7d7ef-150600.3.3.1",
      "fix": "SUSE-SU-2024:3748-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3748-1",
      "released": "2024-10-23T11:33:35Z"
    },
    {
      "platform": "linux",
      "product": "rust-gix-path",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "0.10.11-1",
      "fix": "DEBIAN-CVE-2024-45405",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-45405",
      "released": "2024-09-06T13:15:05Z"
    },
    {
      "platform": "linux",
      "product": "rust-gix-path",
      "release": "Debian 14",
      "fixedVersion": "0.10.11-1",
      "fix": "DEBIAN-CVE-2024-45405",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-45405",
      "released": "2024-09-06T13:15:05Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}