HistoryEditJSON (OSV)

RUSTSEC-2023-0064

gix-transport code execution vulnerability

Reported
Issued
Package
gix-transport (crates.io)
Type
Vulnerability
Categories
Aliases
References
Patched
  • >=0.36.1

Description

The gix-transport crate prior to the patched version 0.36.1 would allow attackers to use malicious ssh clone URLs to pass arbitrary arguments to the ssh program, leading to arbitrary code execution.

PoC: gix clone 'ssh://-oProxyCommand=open$IFS-aCalculator/foo'

This will launch a calculator on OSX.

See https://secure.phabricator.com/T12961 for more details on similar vulnerabilities in git.

Thanks for vin01 for disclosing the issue.

Advisory available under CC0-1.0 license.