# RUSTSEC-2024-0013 - Memory corruption, denial of service, and arbitrary code execution in libgit2

Source: https://junglewise.ai/threats/rustsec-2024-0013-memory-corruption-denial-of-service-and-arbitrary-523ebfa6  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-02-06  
License: CC BY 4.0 with a link back

Severity: low · CVSS 3.1 · Published 2024-02-06

Memory corruption, denial of service, and arbitrary code execution in libgit2

Technologies: [libgit2-sys (crates.io)](https://junglewise.ai/threats/technologies/libgit2-sys). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Low severity, with a CVSS score of 3.1, published 6 February 2024.

**Which products and versions are affected?** libgit2-sys (crates.io) SEMVER:introduced=0.0.0-0,fixed=0.16.2.

**Is there a fix for This vulnerability?** Yes. libgit2-sys (crates.io): upgrade to 0.16.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run libgit2-sys (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- libgit2-sys (crates.io): upgrade to 0.16.2 or later

  ```sh
  cargo update -p libgit2-sys
  ```


## Affected products

- libgit2-sys (crates.io) SEMVER:introduced=0.0.0-0,fixed=0.16.2

## Related threats

- [libgit2-sys affected by memory corruption, denial of service, and arbitrary code execution in libgit2](https://junglewise.ai/threats/libgit2-sys-affected-by-memory-corruption-denial-of-service-and-f4953ccd)
- [RUSTSEC-2023-0003 - git2 does not verify SSH keys by default](https://junglewise.ai/threats/cve-2023-22742-git2-rs-fails-to-verify-ssh-keys-by-default)
