CVE catalog

CVE-2018-10887

libgit2: CVE-2018-10887

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
2.05% · Oct 25, 2026

A flaw was found in libgit2 before version 0.27.3. It has been discovered that an unexpected sign extension in git_delta_apply function in delta.c file may lead to an integer overflow which in turn leads to an out of bound read, allowing to read before the base object. An attacker may use this flaw to leak memory addresses or cause a Denial of Service.

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+deb12u1fixed
Debianlibgit2bookworm-security1.5.1+ds-1+deb12u2fixed
Ubuntulibgit214.040.19.0-2vulnerable
Ubuntulibgit214.040.19.0-2ubuntu0.4fixed
Ubuntulibgit216.040.22.2-2vulnerable
Ubuntulibgit216.040.23.1-1vulnerable
Ubuntulibgit216.040.24.1-2vulnerable
Ubuntulibgit216.040.24.1-2ubuntu0.2fixed
Ubuntulibgit218.040.25.1+really0.24.6-1vulnerable
Ubuntulibgit218.040.26.0+dfsg.1-1.1vulnerable
Ubuntulibgit218.040.26.0+dfsg.1-1.1build1vulnerable
Ubuntulibgit218.040.26.0+dfsg.1-1.1ubuntu0.2fixed
Suselibgit2linux enterprise software development kit 12 sp30.24.1-7.6.1fixed
Suselibgit2manager server 3.10.24.1-7.6.1fixed
Suselibgit2manager server 3.20.24.1-7.6.1fixed
Suselibgit2linux enterprise module for development tools 150.26.6-3.5.2fixed
Alpinelibgit23.100.27.3-r0fixed
Alpinelibgit23.110.27.3-r0fixed
Alpinelibgit23.80.27.3-r0fixed
Alpinelibgit23.90.27.3-r0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibgit2sourcesid0.27.4+dfsg.1-0.1lowNot reported[903509]
Debianlibgit2sourceforky0.27.4+dfsg.1-0.1lowNot reported[903509]
Debianlibgit2sourcetrixie0.27.4+dfsg.1-0.1lowNot reported[903509]
Debianlibgit2sourcebookworm0.27.4+dfsg.1-0.1lowNot reported[903509]
Ubuntulibgit2deb14.040.19.0-2ubuntu0.4Not reportedUBUNTU-CVE-2018-10887Not reported
Ubuntulibgit2deb16.040.24.1-2ubuntu0.2Not reportedUBUNTU-CVE-2018-10887Not reported
Ubuntulibgit2deb18.040.26.0+dfsg.1-1.1ubuntu0.2Not reportedUBUNTU-CVE-2018-10887Not reported
Suselibgit2rpmlinux enterprise software development kit 12 sp30.24.1-7.6.1Not reportedSUSE-SU-2018:3440-1Not reported
Suselibgit2rpmmanager server 3.10.24.1-7.6.1Not reportedSUSE-SU-2018:3440-1Not reported
Suselibgit2rpmmanager server 3.20.24.1-7.6.1Not reportedSUSE-SU-2018:3440-1Not reported
Suselibgit2rpmlinux enterprise module for development tools 150.26.6-3.5.2Not reportedSUSE-SU-2018:2469-1Not reported
Alpinelibgit2apk3.100.27.3-r0Not reportedALPINE-CVE-2018-10887Not reported
Alpinelibgit2apk3.110.27.3-r0Not reportedALPINE-CVE-2018-10887Not reported
Alpinelibgit2apk3.80.27.3-r0Not reportedALPINE-CVE-2018-10887Not reported
Alpinelibgit2apk3.90.27.3-r0Not reportedALPINE-CVE-2018-10887Not reported

[Debian bug #903509]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libgit2-1.5]Unknown

    Source package: [libgit2]

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

  • [libgit2-1.8]Unknown

    Source package: [libgit2]

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

  • [libgit2-dev]Unknown

    Source package: [libgit2]

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

  • Source package: [libgit2]

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · bookworm; dsa · libgit2 · debian · 12

[Debian 13 (Trixie)]

  • [libgit2-1.9]Unknown

    Source package: [libgit2]

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

    • 1.9.0+ds-2 · arm64 · trixie

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

  • [libgit2-dev]Unknown

    Source package: [libgit2]

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

    • 1.9.0+ds-2 · arm64 · trixie

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

  • Source package: [libgit2]

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

    • 1.9.0+ds-2 · all · trixie

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

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

      Fixed · Fixed: 0.27.4+dfsg.1-0.1

      dsa · libgit2 · debian · 13

Observed:

References