Command InjectionWeakness · CWE-77

CVE-2024-32884

MEDIUM · 6.4 CVSS v3.1 Published 2024-04-26
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
70/100
Remediation priority · Elevated
Remotely reachable Zero-click

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 a pure Rust implementation of Git. `gix-transport` does not check the username part of a URL for text that the external `ssh` program would interpret as an option. A specially crafted clone URL can smuggle options to SSH. The possibilities are syntactically limited, but if a malicious clone URL is used by an application whose current working directory contains a malicious file, arbitrary code execution occurs. This is related to the patched vulnerability GHSA-rrjw-j4m2-mf34, but appears less severe due to a greater attack complexity. This issue has been patched in versions 0.35.0, 0.42.0 and 0.62.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

gix-transport in gitoxide fails to sanitize the username portion of clone URLs before passing them to the external SSH program. This allows attackers to inject SSH options (e.g., -o, -F) via specially crafted usernames. When an application uses such a malicious URL while its working directory contains a specially named file, arbitrary code execution becomes possible.

MitigationUpgrade gitoxide to version 0.35.0, 0.42.0, or 0.62.0 or later to obtain the patched version. Avoid using untrusted clone URLs in applications whose working directories may contain attacker-controlled files.

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
Network
Complexity
High
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:L

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
    Check the installed version of gitoxide or gix-transport by examining your Cargo.lock file, package manager records, or running `cargo tree -p gitoxide` or `cargo tree -p gix-transport` in the project directory
    Affected if The installed version is lower than 0.35.0, 0.42.0, or 0.62.0 (the specific minimum depends on which release branch you are on)
  2. Determine if gix-transport is used
    Review your project dependencies to confirm that gix-transport or gitoxide is listed as a dependency in Cargo.toml or Cargo.lock
    Affected if gix-transport or gitoxide is present in the dependency tree and the version is vulnerable
  3. Check for URL input from untrusted sources
    Audit the codebase to determine if clone URLs are accepted from user input, configuration files, or external/untrusted sources without validation
    Affected if The application accepts clone URLs from untrusted or user-supplied sources without sanitizing the username portion
  4. Inspect working directory for specially named files
    Examine the application's working directory for files with unusual names that could be leveraged by an attacker in conjunction with malicious SSH options
    Affected if The working directory contains files that could be exploited when combined with SSH option injection via a crafted username

You are affected if your installed gitoxide version is below the patched releases AND your application uses untrusted clone URLs in an environment where the working directory could contain attacker-controlled files.

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.35.0, 0.42.0, or 0.62.0 or later to obtain the patched version. Avoid using untrusted clone URLs in applications whose working directories may contain attacker-controlled files.

Recommended fix High confidence

gitoxide >= 0.62.0 (or gix-transport >= 0.62.0)

  1. Update the gitoxide crate dependency in your project's Cargo.toml to version 0.62.0 or later (e.g., gix-transport = "0.62.0" or gitoxide = "0.62.0")
  2. Run `cargo update` or `cargo build` to fetch the patched version
  3. Verify the update by running `cargo tree` to confirm the installed version includes the fix for CVE-2024-32884
  4. Rebuild and test your application to ensure the upgrade does not break existing functionality
Caveat Review the gitoxide changelog between your current version and 0.62.0 for any breaking changes that may affect your usage

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

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing5.0 h
  • Review / QA3.0 h
17.0 hours of engineering $2,970
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,752.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-32884 — 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-2024-32884 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