CVE-2025-22620
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedgitoxide 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceIn gitoxide versions prior to 0.17.0, the gix-worktree-state component specifies 0777 permissions when checking out executable files, intending umask to restrict them. However, one permission-setting strategy bypasses umask, causing files to become world-writable in certain checkout scenarios.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify gitoxide versionRun 'gix --version' or check the cargo/package version if used as a library (e.g., cargo tree -p gitoxide)Affected if Version is below 0.17.0
-
Confirm gix-worktree-state is in useInspect whether your build/deploy process invokes gix-worktree-state or performs worktree checkouts using gitoxide (check logs, scripts, or dependency usage)Affected if gix-worktree-state or worktree checkout functionality has been executed
-
Audit for world-writable files in worktreeSearch for files with 0777 or similar broad permissions in directories where gitoxide performed checkouts: find <worktree-path> -perm -002 -type fAffected if Any executable files in worktree directories show world-writable (mode includes '2' in the others-write bit, e.g., 0777, 0775)
You are affected if gitoxide version is below 0.17.0 AND you have used gix-worktree-state to check out files, resulting in world-writable files in your worktree.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade gitoxide to version 0.17.0 or later to receive the permission-handling fix.
gitoxide version 0.17.0
- Identify all projects and dependencies that use gitoxide (gix-worktree-state) versions prior to 0.17.0
- Locate the Cargo.toml file(s) containing the gitoxide or gix-worktree-state dependency
- Update the version specification for gitoxide to version 0.17.0 or later (e.g., change gitoxide = "0.16" to gitoxide = "0.17" or use gitoxide = ">=0.17.0")
- Run cargo update to refresh the lockfile with the new version
- Rebuild the project with cargo build to verify the new dependency version is resolved
- Run existing tests to ensure the upgrade does not introduce regressions
- Deploy the updated build to all affected environments
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,328.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-22620 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-22620 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data