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

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

CVE-2026-22698HIGH8.7
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22700HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22699HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22705MEDIUM6.4
  • RustRust
  • ml-dsa
NoYesJan 10, 2026
CVE-2025-15504MEDIUM4.8
  • PythonPython
  • lief
NoYesJan 10, 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