cve.bz

CVE-2018-10887 Out-of-bounds Read

8.1 highEPSS 2.0%Fix available

High (8.1). EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
EPSS
2.0% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-125 Out-of-bounds Read
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
CWE-681 Incorrect Conversion between Numeric Types
CWE-194 Unexpected Sign Extension
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-10887 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-10887?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-10887?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-10887 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libgit2:libgit2before 0.27.3
debian:debian_linux8.0
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libgit20.21.1-3+deb8u1DLA-1477-1
Debian9libgit20.25.1+really0.24.6-1+deb9u1DLA-2936-1
Debian12, 13, 14libgit20.27.4+dfsg.1-0.1DEBIAN-CVE-2018-10887
Ubuntu14.04:LTSlibgit20.19.0-2ubuntu0.4UBUNTU-CVE-2018-10887
Ubuntu16.04:LTSlibgit20.24.1-2ubuntu0.2UBUNTU-CVE-2018-10887
Ubuntu18.04:LTSlibgit20.26.0+dfsg.1-1.1ubuntu0.2UBUNTU-CVE-2018-10887
SUSELinux Enterprise Module for Development Tools 15libgit20.26.6-3.5.2SUSE-SU-2018:2469-1
SUSELinux Enterprise Software Development Kit 12 SP3, Manager Server 3.1, Manager Server 3.2libgit20.24.1-7.6.1SUSE-SU-2018:3440-1
openSUSETumbleweedlibgit21.1.1-1.2openSUSE-SU-2024:10943-1
Alpinev3.8, v3.9, v3.11 and 9 morelibgit20.27.3-r0ALPINE-CVE-2018-10887
Alpinev3.10libgit2, libgit2-0.270.27.3-r0ALPINE-CVE-2018-10887
Alpinev3.13, v3.14libgit2, libgit2-1.00.27.3-r0ALPINE-CVE-2018-10887
Alpinev3.15, v3.16libgit2, libgit2-1.10.27.3-r0ALPINE-CVE-2018-10887

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High
  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON