Advisory

RUSTSEC-2023-0064

Also known as: CVE-2023-53158, GHSA-rrjw-j4m2-mf34

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 to vin01 for disclosing the issue.

Severity

Not rated by the source.

Dates

Published
2023-09-23 12:00 UTC
Modified
2025-10-28 06:02 UTC

Affected packages and fixes

gix-transport

crates.io · All systems

Affected

  • introduced 0.0.0-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: RustSec Advisory Database · CC0-1.0

Sources & licences