Advisory

DEBIAN-CVE-2026-53587

Also known as: CVE-2026-53587

Summary

The record has no summary.

Details

libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Prior to 1.8.6 and 1.9.5, libgit2 performs a fixed-size strncmp in set_data in src/libgit2/transports/smart_pkt.c without first verifying that the smart-protocol pkt-line capability buffer contains 14 bytes. A malicious Git server can make bytes after the pkt-line complete object-format=, causing format_str to advance beyond the pkt-line and the following memchr length calculation to underflow. The resulting heap out-of-bounds walk can crash a client during the first refs-advertisement packet over HTTP, HTTPS, SSH, or the Git protocol. This issue is fixed in versions 1.8.6 and 1.9.5.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-08-20 19:16 UTC
Modified
2026-10-27 09:47 UTC

Affected packages and fixes

libgit2

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 1.9.0+ds-2+deb13u1 (ecosystem)

Fixed versions

1.9.0+ds-2+deb13u1

Fix

  • Fixed version 1.9.0+ds-2+deb13u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libgit2

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 1.9.6+ds-1 (ecosystem)

Fixed versions

1.9.6+ds-1

Fix

  • Fixed version 1.9.6+ds-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences