CVE-2018-10887 json
A flaw was found in libgit2 before version 0.27.3.
published 8y ago modified 4mo ago also EUVD-2018-2951
- cvss
- 8.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- libgit2 libgit2 0.27.3
- libgit2 Debian 14, Debian 13, Debian 12 0.27.4+dfsg.1-0.1
debian advisories DEBIAN-CVE-2018-10887
- libgit2 Ubuntu 14.04 LTS 0.19.0-2ubuntu0.4
- libgit2 Ubuntu 16.04 LTS 0.24.1-2ubuntu0.2
- libgit2 Ubuntu 18.04 LTS 0.26.0+dfsg.1-1.1ubuntu0.2
ubuntu advisories UBUNTU-CVE-2018-10887
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libgit2 SLE Software Development Kit 12 SP3, Manager Server 3.2, Manager Server 3.1 0.24.1-7.6.1
- libgit2 SLE Module for Development Tools 15 0.26.6-3.5.2
suse advisories SUSE-SU-2018:3440-1SUSE-SU-2018:2469-1
- libgit2 openSUSE Tumbleweed 1.1.1-1.2
opensuse advisories openSUSE-SU-2024:10943-1
- libgit2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +14 more 0.27.3-r0
- libgit2-1.0 Alpine 3.14, Alpine 3.13 0.27.3-r0
- libgit2-1.1 Alpine 3.16, Alpine 3.15 0.27.3-r0
- libgit2-0.27 Alpine 3.10 0.27.3-r0
alpine advisories ALPINE-CVE-2018-10887
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2018-10887 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-10887 updated cvss 5.3
libgit2: integer overflow leads to out-of-bounds read in git_delta_apply, allowing to read before base array
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.05% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H |
| NVD | 2.0 | 5.8 | AV:N/AC:M/Au:N/C:P/I:N/A:P |
Affected products
- libgit2 libgit2
Classification
References
-
github.com
/libgit2/libgit2/commit/c1577110467b701dcbcf9439ac225ea851b47d22
patch
-
github.com
/libgit2/libgit2/commit/3f461902dc1072acb8b7607ee65d0a0458ffac2a
patch
-
bugzilla.redhat.com
/show_bug.cgi?id=1598021
issue-tracking, patch
-
github.com
/libgit2/libgit2/releases/tag/v0.27.3
patch, release-notes
-
lists.debian.org
/debian-lts-announce/2018/08/msg00024.html
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/03/msg00031.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2018-10887
- NVD CVE-2018-10887
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.