Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. gix-worktree-state
  4. ›
  5. CVE-2025-22620

CVE-2025-22620: gix-worktree-state nonexclusive checkout sets executable files world-writable

January 21, 2025

gix-worktree-state specifies 0777 permissions when checking out executable files, intending that the umask will restrict them appropriately. But one of the strategies it uses to set permissions is not subject to the umask. This causes files in a repository to be world-writable in some situations.

References

  • github.com/GitoxideLabs/gitoxide
  • github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh
  • github.com/advisories/GHSA-fqmf-w4xh-33rh
  • nvd.nist.gov/vuln/detail/CVE-2025-22620
  • rustsec.org/advisories/RUSTSEC-2025-0001.html

Code Behaviors & Features

Detect and mitigate CVE-2025-22620 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.17.0

Fixed versions

  • 0.17.0

Solution

Upgrade to version 0.17.0 or above.

Impact 5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-281: Improper Preservation of Permissions
  • CWE-687: Function Call With Incorrectly Specified Argument Value

Source file

cargo/gix-worktree-state/CVE-2025-22620.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:48 +0000.