Vulnerability DatabaseRUSTSEC-2024-0335

RUSTSEC-2024-0335
Rust vulnerability analysis and mitigation

Overview

The vulnerability (RUSTSEC-2024-0335) affects gitoxide, a pure Rust implementation of Git. The issue lies in the gix-transport component, which fails to properly validate the username portion of URLs for SSH command options. This vulnerability was discovered and disclosed in April 2024, affecting multiple versions of the software packages including gitoxide (<0.35), gix (<0.62), and gix-transport (<0.42.0). (GitHub Advisory)

Technical details

The vulnerability stems from gix-transport's insufficient URL validation, specifically in the username part of SSH URLs. While the component checks host and path portions for potentially dangerous characters, it overlooks the username section. When processing URLs in the format ssh://username@hostname/path or username@hostname:dirs/repo, the system passes the username directly to the SSH command without proper sanitization. This can lead to option injection if the username begins with a hyphen. The vulnerability is tracked with a CVSS v3.1 score of 6.4 (Medium), with a vector string of CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:L. (GitHub Advisory)

Impact

The vulnerability's impact is constrained by several factors, including the requirement for user interaction to trigger a malicious URL clone and the need for preparatory steps to establish specially named files in the current directory. Users are particularly at risk when working with repositories containing automatically added submodules, operating on other repositories from within an untrusted repository, or when reviewing contributions from untrusted developers by checking out branches from untrusted forks. (GitHub Advisory)

Mitigation and workarounds

The vulnerability has been patched in multiple versions: gitoxide version 0.35.0 and later, gix version 0.62.0 and later, and gix-transport version 0.42.0 and later. Users are strongly advised to upgrade to these patched versions to mitigate the risk. (GitHub Advisory)

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

RUSTSEC-2026-0232HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0231HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0230HIGH7.5
  • Rust logoRust
  • nostr
NoYesAug 01, 2026
RUSTSEC-2026-0229HIGH7.5
  • Rust logoRust
  • nostr
NoYesAug 01, 2026
CVE-2026-68930MEDIUM6.5
  • Rust logoRust
  • russh
NoYesAug 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management