CVE-2024-43785 gitoxide-core does not neutralize special characters for terminals
Attackers can manipulate terminal output via unescaped control characters in repository metadata, misleading users about repository contents or errors.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-43785?
CVE-2024-43785 is a low-severity vulnerability in Byron gitoxide, published on 22 Aug 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
gitoxide An idiomatic, lean, fast & safe pure Rust implementation of Git. gitoxide-core, which provides most underlying functionality of the gix and ein commands, does not neutralize newlines, backspaces, or control characters—including those that form ANSI escape sequences—that appear in a repository's paths, author and committer names, commit messages, or other metadata. Such text may be written as part of the output of a command, as well as appearing in error messages when an operation fails. This sometimes allows an untrusted repository to misrepresent its contents and to alter or concoct error messages.
Weakness: CWE-150
Which versions are affected by CVE-2024-43785?
5 open source packages ship an affected version, including gitoxide-core and gitoxide.
| Package | Affected | Fixed in |
|---|---|---|
gitoxide-core crates.io | All versions to 0.45.0 | None |
gitoxide-core crates.io | All versions to 0.45.0 | None |
gitoxide-core crates.io | From 0.0.0-0 | None |
gitoxide crates.io | All versions to 0.41.0 | None |
gitoxide crates.io | All versions to 0.41.0 | None |
How do I fix CVE-2024-43785?
No fix has been published for CVE-2024-43785 yet. Limit exposure of the affected software until one is available.
Is CVE-2024-43785 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-43785 exists.
Sources
Also known as GHSA-88g2-r9rw-g55h, RUSTSEC-2024-0364.