cve.bz

CVE-2025-22620 gitoxidelabs gitoxide: Improper Preservation of Permissions

5.0 mediumEPSS 0.4%Fix available

Medium (5.0) in gitoxidelabs gitoxide. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in gix-worktree-state 0.17.0.

On this page
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.

Severity

CVSS 3.1

5.0 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-01-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-281 Improper Preservation of Permissions
CWE-687 Function Call With Incorrectly Specified Argument Value
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-22620 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-22620?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-22620?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-22620 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GitoxideLabs gitoxide< 0.17.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fqmf-w4xh-33rhcrates.iogix-worktree-state<0.17.00.17.0
RUSTSEC-2025-0001crates.iogix-worktree-state>=0.0.0-0 <0.17.00.17.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13, 14rust-gix-worktree-state0.11.1-2DEBIAN-CVE-2025-22620
openSUSELeap 16.0gitoxide0.56.0-bp160.1.1openSUSE-SU-2026:21558-1
openSUSETumbleweedgitoxide0.42.0-1.1openSUSE-SU-2025:14994-1

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · openSUSE.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

References

Check your stackJSON