medium4.1
CVE-2023-53158
gix-transport code execution vulnerability
Impact
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](https://github.com/vin01) for disclosing this issue.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | gix-transport | < 0.36.1 | 0.36.1 |
Affected products
| Product | Affected versions |
|---|---|
| Gix-Transport Crate | before 0.36.1 |
Versions were read from the advisory text. No structured product data has been published for this record yet.
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://crates.io/crates/gix-transport
- https://github.com/GitoxideLabs/gitoxide/pull/1032
- https://github.com/advisories/GHSA-rrjw-j4m2-mf34
- https://rustsec.org/advisories/RUSTSEC-2023-0064.html
- https://secure.phabricator.com/T12961
- https://nvd.nist.gov/vuln/detail/CVE-2023-53158