Denial of Service Vulnerability in libgit2: CVE-2016-10129

libgit2 Updated 02 Oct 2025

Summary

24/03/2017
N/A
Yes i
High
7.5

ALPINE-CVE-2016-10129: The Git Smart Protocol support in libgit2 before 0.24.6 and 0.25.x before 0.25.1 allows remote attackers to cause a denial of service (NULL pointer dereference) via an empty packet line. Affects libgit2 versions < 0.25.1-r0. Fixed in 0.25.1-r0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libgit2 is a portable, pure C implementation of the Git core methods provided as a re-entrant library with a focus on performance and flexibility. It allows developers to integrate Git functionalities into their applications seamlessly. However, certain versions of libgit2 are vulnerable to a denial of service attack due to improper handling of packet lines in the Git Smart Protocol.

Vulnerability Detail

The vulnerability identified as CVE-2016-10129 affects libgit2 versions prior to 0.24.6 and 0.25.x before 0.25.1. It allows remote attackers to exploit the library by sending an empty packet line, leading to a NULL pointer dereference and causing a denial of service. This can disrupt the functionality of applications relying on libgit2, making them unresponsive or crashing them entirely.

How To Fix

Minimum fixed version

0.25.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade libgit2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There are no specific workarounds mentioned for this vulnerability. The best course of action is to update to the patched version of libgit2.

Conclusion

CVE-2016-10129 is a significant vulnerability in libgit2 that can lead to denial of service attacks. It is crucial for users of affected versions to update to the patched versions to ensure the security and stability of their applications.

See every vulnerability recorded for libgit2 →

Share this vulnerability

FAQ

CVE-2016-10129 is a vulnerability in libgit2 that allows remote attackers to cause a denial of service by sending an empty packet line.

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

Exploitation of this vulnerability can lead to a denial of service, making applications that depend on libgit2 unresponsive or crashing.

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 CVSS score for CVE-2016-10129 is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for libgit2.

How To Fix

Minimum fixed version

0.25.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade libgit2

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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