Advisory

GHSA-rrjw-j4m2-mf34

Also known as: CVE-2023-53158, RUSTSEC-2023-0064

Summary

gix-transport code execution vulnerability

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-09-25 20:21 UTC
Modified
2025-07-28 16:41 UTC

Affected packages and fixes

gix-transport

crates.io · All systems

Affected

  • introduced 0, fixed 0.36.1 (semver)

Fixed versions

0.36.1

Fix

  • Fixed version 0.36.1
    cargo update -p gix-transport --precise 0.36.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences