Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. gix
  4. ›
  5. GHSA-pg4w-g64p-qwhj

GHSA-pg4w-g64p-qwhj: gix and gitoxide's symlinked .gitmodules are followed and parsed from outside of the repository

May 5, 2026

attachments: pocs.zip

When Repository::submodules() loads submodule metadata, it prefers the worktree .gitmodules file if that path exists. In the current implementation, the path is read with std::fs::read(), which follows symlinks. As a result, a repository can present a symlinked .gitmodules that points outside the repository, and gitoxide will parse the out-of-repository bytes as submodule configuration.

This is a repository-boundary violation. A caller using the high-level submodule API can believe it is reading repository-local submodule metadata, while the bytes are actually coming from an arbitrary file outside the repository tree.

References

  • github.com/GitoxideLabs/gitoxide
  • github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-pg4w-g64p-qwhj
  • github.com/advisories/GHSA-pg4w-g64p-qwhj

Code Behaviors & Features

Detect and mitigate GHSA-pg4w-g64p-qwhj with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.83.0

Fixed versions

  • 0.83.0

Solution

Upgrade to version 0.83.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

cargo/gix/GHSA-pg4w-g64p-qwhj.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 00:20:55 +0000.