Affected versions
Version ranges need review.
Rust / Cargogix-transport
- Affected versions
- < 0.36.1
- Fixed version
- 0.36.1
Rust / Cargogix-transport
- Affected versions
- >=0.0.0-0 <0.36.1
- Fixed version
- 0.36.1
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
Exploitation
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 this issue.
Links
- https://crates.io/crates/gix-transport
- https://github.com/Byron/gitoxide/pull/1032
- https://github.com/GitoxideLabs/gitoxide
- https://github.com/GitoxideLabs/gitoxide/pull/1032
- https://github.com/advisories/GHSA-rrjw-j4m2-mf34
- https://nvd.nist.gov/vuln/detail/CVE-2023-53158
- https://rustsec.org/advisories/RUSTSEC-2023-0064.html
- https://secure.phabricator.com/T12961
Credits
- EliahKagan

