SB2025011810 - Improper Preservation of Permissions in gix-worktree-state
Published: January 18, 2025 Updated: May 5, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 vulnerability.
1) Improper Preservation of Permissions (CVE-ID: CVE-2025-22620)
CWE-ID: CWE-281 - Improper preservation of permissions
CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
The vulnerability allows a local user to modify executable files with overly permissive world-writable permissions.
The vulnerability exists due to improper preservation of permissions in gix_worktree_state::checkout and checkout::entry::finalize_entry when checking out executable files with destination_is_initially_empty set to false. A local user can perform a checkout that sets mode 0777 on executable files to modify executable files with overly permissive world-writable permissions.
This affects Unix-like systems, and user interaction is required to perform the checkout operation.
Remediation
Install update from vendor's website.