Man-in-the-Middle Vulnerability in libgit2 Package - CVE-2016-10130

libgit2 Updated 03 Oct 2025

Summary

24/03/2017
N/A
No i
Medium
5.9

UBUNTU-CVE-2016-10130: The http_connect function in transports/http.c in libgit2 before 0.24.6 and 0.25.x before 0.25.1 might allow man-in-the-middle attackers to spoof servers by leveraging clobbering of the error variable. Affects libgit2 versions 0.19.0-2 – 0.19.0-2ubuntu0.4+esm1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libgit2 is a portable, pure C implementation of the Git version control system. It provides a set of APIs to manage Git repositories and is widely used in various applications for version control functionalities. The package is essential for developers who require a lightweight and efficient way to interact with Git repositories. However, certain versions of libgit2 are susceptible to a vulnerability that could allow attackers to spoof server responses, potentially compromising the integrity of data transmitted over HTTP.

Vulnerability Detail

The vulnerability identified as CVE-2016-10130 exists in the http_connect function within the transports/http.c file of libgit2 versions prior to 0.24.6 and 0.25.x before 0.25.1. This flaw allows man-in-the-middle attackers to exploit the error variable clobbering, which could lead to server spoofing. As a result, attackers could intercept and manipulate communications between clients and servers, posing significant risks to data integrity and confidentiality.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, consider using secure connections (HTTPS) and validating server certificates to mitigate the risk of man-in-the-middle attacks until the package is updated.

Conclusion

The CVE-2016-10130 vulnerability in the libgit2 package poses significant risks due to its potential for man-in-the-middle attacks. It is crucial for users to update their packages to the latest patched versions to safeguard against these threats. Additionally, employing secure connection practices can help mitigate risks until updates are applied.

See every vulnerability recorded for libgit2 →

Share this vulnerability

FAQ

CVE-2016-10130 is a vulnerability in the libgit2 package that allows man-in-the-middle attackers to spoof servers due to an error variable clobbering issue.

Versions of libgit2 prior to 0.24.6 and 0.25.x before 0.25.1 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability can lead to man-in-the-middle attacks, allowing attackers to intercept and manipulate data transmitted between clients and servers.

If immediate updates are not possible, ensure that you are using secure connections and validate server certificates to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for libgit2.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback