Vulnerability DatabaseRUSTSEC-2023-0064

RUSTSEC-2023-0064
Rust vulnerability analysis and mitigation

Overview

RUSTSEC-2023-0064 is a code execution vulnerability discovered in the gix-transport Rust library. The vulnerability allows malicious code execution through specially crafted clone URLs or configuration files. The issue was discovered and disclosed on September 24, 2023, affecting the gitoxide project's transport implementation (GitHub PR).

Technical details

The vulnerability stems from insufficient URL sanitization in the transport layer, specifically when handling SSH URLs. A proof of concept demonstrated that using a maliciously crafted URL like 'ssh://-oProxyCommand=open$IFS-aCalculator/foo' could trigger arbitrary command execution on OSX. The issue relates to how the library handles command-line arguments passed to the SSH command, particularly when processing host and path components of URLs (GitHub PR).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary code on the target system through malicious clone URLs or configuration files. The impact is particularly severe in scenarios where applications process untrusted git repositories or when operating on repositories with submodules that are automatically added (GitHub PR).

Exploitability

The vulnerability can be exploited by crafting specific SSH URLs that contain command injection payloads. A successful exploit requires user interaction to trigger an attempt to clone or connect using the malicious URL. The attack complexity is relatively low, as demonstrated by the proof of concept that could launch arbitrary applications on the target system (GitHub PR).

Mitigation and workarounds

The vulnerability was patched by implementing additional URL sanitization checks. The fix includes the addition of Url::host_argument_safe() and Url::path_argument_safe() functions that validate arguments before they are passed to command-line applications. The patch prevents hosts or paths that look like arguments from being passed to invoked commands (GitHub PR).

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

GHSA-5x78-73v4-xg6wHIGH8.7
  • Rust logoRust
  • postgres-protocol
NoYesAug 24, 2026
GHSA-fx4f-mhw4-qm7jMEDIUM6.9
  • Rust logoRust
  • vibeio-http
NoYesAug 24, 2026
GHSA-3gjw-f78c-vvpwMEDIUM6.9
  • Rust logoRust
  • tokio-postgres
NoYesAug 24, 2026
GHSA-rgqc-3x5p-6gwgMEDIUM6.9
  • Rust logoRust
  • postgres-protocol
NoYesAug 24, 2026
RUSTSEC-2026-0267NONEN/A
  • Rust logoRust
  • stable-vec
NoYesAug 24, 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