Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. gix
  4. ›
  5. GHSA-q54r-jf2p-rfr2

GHSA-q54r-jf2p-rfr2: gitoxide gix: untrusted .git/config disables filesystem .git-protection path checks via unfiltered protect_options()

October 23, 2026

In the gix crate, Cache::protect_options() in gix/src/config/cache/access.rs reads the three filesystem path-protection settings (core.protectHFS, core.protectNTFS, and gitoxide.core.protectWindows) with the unfiltered gix_config::File::boolean() accessor instead of the trust-aware boolean_filter() accessor used by every other security-critical config read in the same file. When a repository is opened with reduced trust (an ownership mismatch, which maps .git/config sections to Trust::Reduced), these protection settings should not be honored from the untrusted repository-local config. Because the trust filter is skipped, an attacker who controls a repository’s .git/config on a shared filesystem can set core.protectNTFS = false and/or core.protectHFS = false, disabling the .git path-confusion checks that run during checkout, index creation, merge, and tree editing. On case-insensitive filesystems this lets crafted tree entries resolve to the .git directory and overwrite hooks or config.

References

  • github.com/GitoxideLabs/gitoxide/commit/743957880154aa1726b30b8b5779fd10c78a058c
  • github.com/GitoxideLabs/gitoxide/pull/3068
  • github.com/GitoxideLabs/gitoxide/releases/tag/gix-v0.90.0
  • github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-q54r-jf2p-rfr2
  • github.com/advisories/GHSA-q54r-jf2p-rfr2

Code Behaviors & Features

Detect and mitigate GHSA-q54r-jf2p-rfr2 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.88.0 before 0.90.0

Fixed versions

  • 0.90.0

Solution

Upgrade to version 0.90.0 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data

Source file

cargo/gix/GHSA-q54r-jf2p-rfr2.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:57 +0000.