CVE-2024-32884 gix-transport indirect code execution via malicious username
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
gitoxide is a pure Rust implementation of Git. gix-transport does not check the username part of a URL for text that the external ssh program would interpret as an option. A specially crafted clone URL can smuggle options to SSH. The possibilities are syntactically limited, but if a malicious clone URL is used by an application whose current working directory contains a malicious file, arbitrary code execution occurs. This is related to the patched vulnerability GHSA-rrjw-j4m2-mf34, but appears less severe due to a greater attack complexity. This issue has been patched in versions 0.35.0, 0.42.0 and 0.62.0.
Upgrade path
4 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Byron gitoxide | < 0.35.0; < 0.42.0; < 0.62.0; = < 0.35 +2 more | 0.35.0, 0.42.0, 0.62.0 | Fixed |
| crates.io gitoxide(crates.io) | < 0.35 | 0.35 | Fixed |
| crates.io gix(crates.io) | < 0.62 | 0.62 | Fixed |
| crates.io gix-transport(crates.io) | < 0.42.0; >= 0.0.0-0, < 0.42.0 | 0.42.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io gix-transport(crates.io) | < 0.42.0 | 0.42.0 |
| crates.io gix(crates.io) | < 0.62 | 0.62 |
| crates.io gitoxide(crates.io) | < 0.35 | 0.35 |
| crates.io gix-transport(crates.io) | >= 0.0.0-0, < 0.42.0 | 0.42.0 |
| Byron gitoxide | = < 0.42.0 | No fix listed |
| Byron gitoxide | = < 0.62 | No fix listed |
| Byron gitoxide | = < 0.35 | No fix listed |
| Byron gitoxide | < 0.35.0 | 0.35.0 |
| Byron gitoxide | < 0.62.0 | 0.62.0 |
| Byron gitoxide | < 0.42.0 | 0.42.0 |
References
- https://github.com/Byron/gitoxide/security/advisories/GHSA-98p4-xjmm-8mfh vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- https://rustsec.org/advisories/RUSTSEC-2024-0335.html vendor-advisory
- crates.io product
- github.com
- github.com