CVE-2025-22620

gix-worktree-state nonexclusive checkout sets executable files world-writable

State
Published
Severity
5.0 Medium
Published
Jan 20, 2025
Updated
Jan 21, 2025
Reserved
Jan 7, 2025

Read the record on cve.org

Description

gitoxide is an implementation of git written in Rust. Prior to 0.17.0, 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. This vulnerability is fixed in 0.17.0.

Scores

CVSSScoreVectorSource
3.15.0 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:NGitHub_M

Weaknesses

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

Affected Products

ProductVersions
gitoxideGitoxideLabs
  • < 0.17.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.