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 package | Versions | Reported by |
|---|---|---|
| GitoxideLabs gix-transport | before 0.36.1 | CVE List |
| gix-transport (crates.io) | before 0.36.1, from 0.0.0-0 before 0.36.1 | GitHub Advisory Database, RustSec Advisory Database |
All scores
| mitre | 4.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 4.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-53158 changed 2025-07-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rrjw-j4m2-mf34 changed 2025-07-28 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2023-0064 changed 2025-10-28 | CC0-1.0 |
| NVD | CVE-2023-53158 changed 2026-06-17 | Public domain |