Skip to content

CVE-2025-24890 gix-sec safe.directory protections absent for elevated administrators

MediumCVSS 6.8 EPSS 0.17%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
DebianRed Hat

Description

gitoxide is an implementation of git written in Rust. Prior to 0.13.3, the gix-sec crate on Windows incorrectly treats repositories controlled by another user as trusted when an administrator runs a dependent program with an unfiltered elevated token. In gix-sec/src/identity.rs, gix_sec::identity::is_path_owned_by_current_user obtains folder_owner and token_owner, but its administrator-specific IsWellKnownSid and CheckTokenMembership checks examine the running token rather than confirming the directory owner. This bypasses safe.directory-style protection for repositories owned and configured by a limited user, allowing repository configuration or hooks to execute commands with the administrator's privileges when an affected operation is performed. Exploitation requires Windows, an elevated administrator, a program that relies on gix-sec trust results, and interaction with a repository controlled by another user. An unelevated UAC process is not affected, and cloning is not affected because repository configuration and hooks are not copied. This issue is fixed in version 0.13.3.

Upgrade path

3 packages: 1 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
azure linux rust(Azure Linux 3.0) All versions No fix listed No fix yet
crates.io gix-sec(crates.io) < 0.13.3; <= 0.13.2 0.13.3 Fixed
GitoxideLabs gitoxide = < 0.13.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
crates.io gix-sec(crates.io) < 0.13.3 0.13.3
GitoxideLabs gitoxide = < 0.13.3 No fix listed
crates.io gix-sec(crates.io) <= 0.13.2 No fix listed
azure linux rust(Azure Linux:3.0) All versions No fix listed

References