CWE-281Weakness · CWE-281

CVE-2025-22620

MEDIUM · 5.0 CVSS v3.1 Published 2025-01-20
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
50/100
Remediation priority · Moderate

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 · unedited
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.

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 confidence

In 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.

MitigationUpgrade gitoxide to version 0.17.0 or later to receive the permission-handling fix.

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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify gitoxide version
    Run '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
  2. Confirm gix-worktree-state is in use
    Inspect 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
  3. Audit for world-writable files in worktree
    Search for files with 0777 or similar broad permissions in directories where gitoxide performed checkouts: find <worktree-path> -perm -002 -type f
    Affected 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade gitoxide to version 0.17.0 or later to receive the permission-handling fix.

Recommended fix High confidence

gitoxide version 0.17.0

  1. Identify all projects and dependencies that use gitoxide (gix-worktree-state) versions prior to 0.17.0
  2. Locate the Cargo.toml file(s) containing the gitoxide or gix-worktree-state dependency
  3. 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")
  4. Run cargo update to refresh the lockfile with the new version
  5. Rebuild the project with cargo build to verify the new dependency version is resolved
  6. Run existing tests to ensure the upgrade does not introduce regressions
  7. Deploy the updated build to all affected environments
Caveat Review the gitoxide 0.17.0 release notes for any breaking changes in the changelog before upgrading

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing4.0 h
  • Review / QA2.0 h
12.0 hours of engineering $2,080
Get help mitigating

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 locally
dbcve dependency scanner

Check 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-22620 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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