# CVE-2018-10887

- Priority: **Routine**
- Reason: Not severe (CVSS 8.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-07-10 · Modified: 2024-09-17
- Aliases: ALPINE-CVE-2018-10887, UBUNTU-CVE-2018-10887, DEBIAN-CVE-2018-10887
- Record: https://cvemate.com/vulnerability/CVE-2018-10887 · JSON: https://cvemate.com/vulnerability/CVE-2018-10887/json

## Description

```text
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.
```

## Signals

- CVSS: 8.1 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
- EPSS: 2.019%, percentile 81.644%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libgit2 (Alpine Linux): \< 0.27.3-r0
- alpine libgit2-0.27 (Alpine Linux): \< 0.27.3-r0
- alpine libgit2-1.0 (Alpine Linux): \< 0.27.3-r0
- alpine libgit2-1.1 (Alpine Linux): \< 0.27.3-r0
- debian libgit2 (Debian): \< 0.27.4+dfsg.1-0.1
- ubuntu libgit2 (Ubuntu): \< 0.19.0-2ubuntu0.4 \| \< 0.24.1-2ubuntu0.2 \| \< 0.26.0+dfsg.1-1.1ubuntu0.2
- debian debian\_linux: 8.0 \| 9.0
- libgit2 libgit2: \< version 0.27.3 \| \< 0.27.3

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1598021>
- <https://lists.debian.org/debian-lts-announce/2018/08/msg00024.html>
- <https://github.com/libgit2/libgit2/releases/tag/v0.27.3>
- <https://github.com/libgit2/libgit2/commit/c1577110467b701dcbcf9439ac225ea851b47d22>
- <https://github.com/libgit2/libgit2/commit/3f461902dc1072acb8b7607ee65d0a0458ffac2a>
- <https://lists.debian.org/debian-lts-announce/2022/03/msg00031.html>
- <https://security.alpinelinux.org/vuln/CVE-2018-10887>
- <https://ubuntu.com/security/CVE-2018-10887>
- <https://www.cve.org/CVERecord?id=CVE-2018-10887>
- <https://security-tracker.debian.org/tracker/CVE-2018-10887>

---

Data as of 2026-12-05T19:11:55.261Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
