CVE-2023-53158
JSON

4.1medium

gix-transport code execution vulnerability

Severity
4.1medium CVSS:3.1 by mitre
Exploit likelihood
0.31% (higher than 16% of CVEs)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-rrjw-j4m2-mf34RUSTSEC-2023-0064

Description

The gix-transport crate before 0.36.1 for Rust allows command execution via the "gix clone 'ssh://-oProxyCommand=open$IFS" substring. NOTE: this was discovered before CVE-2024-32884, a similar vulnerability (involving a username field) that is more difficult to exploit.

Affected

Product or packageVersionsReported by
GitoxideLabs gix-transportbefore 0.36.1CVE List
gix-transport (crates.io)before 0.36.1, from 0.0.0-0 before 0.36.1GitHub Advisory Database, RustSec Advisory Database

All scores

mitre4.1medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub4.1medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-78CWE-88

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

The gix-transport crate before 0.36.1 for Rust allows command execution via the "gix clone 'ssh://-oProxyCommand=open$IFS" substring. NOTE: this was discovered before CVE-2024-32884, a similar vulnerability (involving a username field) that is more difficult to exploit.

GitHub Advisory Database

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.

RustSec Advisory Database

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.

NVD (es)

El paquete gix-transport para Rust, anterior a la versión 0.36.1, permite la ejecución de comandos mediante la subcadena "gix clone 'ssh://-oProxyCommand=open$IFS". NOTA: Esto se descubrió antes de CVE-2024-32884, una vulnerabilidad similar (que afecta a un campo de nombre de usuario) y que es más difícil de explotar.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-53158 changed 2025-07-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-rrjw-j4m2-mf34 changed 2025-07-28CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2023-0064 changed 2025-10-28CC0-1.0
NVDCVE-2023-53158 changed 2026-06-17Public domain