CVE catalog

CVE-2026-53587

libgit2 vulnerabilities

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.47% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibgit2sid1.9.7+ds-1fixed
Debianlibgit2forky1.9.7+ds-1fixed
Debianlibgit2trixie1.9.0+ds-2+deb13u1fixed
Debianlibgit2trixie-security1.9.0+ds-2+deb13u1fixed
Debianlibgit2bookworm1.5.1+ds-1+deb12u1not affected
Debianlibgit2bookworm-security1.5.1+ds-1+deb12u2not affected
Ubuntulibgit2noble1.7.2+ds-1ubuntu3.1fixed
Ubuntulibgit2-1.7noble1.7.2+ds-1ubuntu3.1fixed
Ubuntulibgit2-devnoble1.7.2+ds-1ubuntu3.1fixed
Ubuntulibgit2-fixturesnoble1.7.2+ds-1ubuntu3.1fixed
Ubuntulibgit224.041.5.1+ds-1ubuntu1vulnerable
Ubuntulibgit224.041.7.1+ds-2ubuntu1vulnerable
Ubuntulibgit224.041.7.2+ds-1ubuntu1vulnerable
Ubuntulibgit224.041.7.2+ds-1ubuntu2vulnerable
Ubuntulibgit224.041.7.2+ds-1ubuntu3vulnerable
Ubuntulibgit224.041.7.2+ds-1ubuntu3.1fixed
Ubuntulibgit226.041.9.0+ds-2ubuntu2vulnerable
Ubuntulibgit226.041.9.1+ds-1ubuntu1vulnerable
Ubuntulibgit226.041.9.1+ds-1ubuntu1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibgit2sourcesid1.9.6+ds-1not yet assignedNot reportedNot reported
Debianlibgit2sourceforky1.9.6+ds-1not yet assignedNot reportedNot reported
Debianlibgit2sourcetrixie1.9.0+ds-2+deb13u1not yet assignedNot reportedNot reported
Debianlibgit2sourcebookwormNot affectedunimportantNot reportedNot reported
Ubuntulibgit2debnoble1.7.2+ds-1ubuntu3.1Not reportedNot reportedNot reported
Ubuntulibgit2-1.7debnoble1.7.2+ds-1ubuntu3.1Not reportedNot reportedNot reported
Ubuntulibgit2-devdebnoble1.7.2+ds-1ubuntu3.1Not reportedNot reportedNot reported
Ubuntulibgit2-fixturesdebnoble1.7.2+ds-1ubuntu3.1Not reportedNot reportedNot reported
Ubuntulibgit2deb24.041.7.2+ds-1ubuntu3.1Not reportedUBUNTU-CVE-2026-53587Not reported
Ubuntulibgit2deb26.041.9.1+ds-1ubuntu1.1Not reportedUBUNTU-CVE-2026-53587Not reported

OpenFactory catalog packages

[Debian 13 (Trixie)]

  • [libgit2-1.9]Affected

    Source package: [libgit2]

    Details (4)
    • 1.9.0+ds-2 · amd64 · trixie

      Affected · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

    • 1.9.0+ds-2 · arm64 · trixie

      Affected · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

    • 1.9.0+ds-2+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

    • 1.9.0+ds-2+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

  • [libgit2-dev]Affected

    Source package: [libgit2]

    Details (4)
    • 1.9.0+ds-2 · amd64 · trixie

      Affected · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

    • 1.9.0+ds-2 · arm64 · trixie

      Affected · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

    • 1.9.0+ds-2+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

    • 1.9.0+ds-2+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

  • Source package: [libgit2]

    Details (4)
    • 1.9.0+ds-2 · all · trixie

      Affected · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

    • 1.9.0+ds-2 · all · trixie

      Affected · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

    • 1.9.0+ds-2+deb13u1 · all · trixie-security

      Fixed · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

    • 1.9.0+ds-2+deb13u1 · all · trixie-security

      Fixed · Fixed: 1.9.0+ds-2+deb13u1

      usn · libgit2 · debian · 13

[Debian 12 (Bookworm)]

  • [libgit2-1.5]Not affected

    Source package: [libgit2]

    Details (4)
    • 1.5.1+ds-1+deb12u1 · amd64 · bookworm

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.5.1+ds-1+deb12u1 · arm64 · bookworm

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.5.1+ds-1+deb12u1 · amd64 · bookworm-security

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.5.1+ds-1+deb12u1 · arm64 · bookworm-security

      Not affected

      usn · libgit2 · debian · bookworm

  • [libgit2-1.8]Not affected

    Source package: [libgit2]

    Details (2)
    • 1.8.4+ds-3~bpo12+1 · amd64 · bookworm-backports

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.8.4+ds-3~bpo12+1 · arm64 · bookworm-backports

      Not affected

      usn · libgit2 · debian · bookworm

  • [libgit2-dev]Not affected

    Source package: [libgit2]

    Details (6)
    • 1.5.1+ds-1+deb12u1 · amd64 · bookworm

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.5.1+ds-1+deb12u1 · arm64 · bookworm

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.8.4+ds-3~bpo12+1 · amd64 · bookworm-backports

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.8.4+ds-3~bpo12+1 · arm64 · bookworm-backports

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.5.1+ds-1+deb12u1 · amd64 · bookworm-security

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.5.1+ds-1+deb12u1 · arm64 · bookworm-security

      Not affected

      usn · libgit2 · debian · bookworm

  • [libgit2-fixtures]Not affected

    Source package: [libgit2]

    Details (6)
    • 1.5.1+ds-1+deb12u1 · all · bookworm

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.5.1+ds-1+deb12u1 · all · bookworm

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.8.4+ds-3~bpo12+1 · all · bookworm-backports

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.8.4+ds-3~bpo12+1 · all · bookworm-backports

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.5.1+ds-1+deb12u1 · all · bookworm-security

      Not affected

      usn · libgit2 · debian · bookworm

    • 1.5.1+ds-1+deb12u1 · all · bookworm-security

      Not affected

      usn · libgit2 · debian · bookworm

Observed:

References