CVE-2018-10887
A flaw was found in libgit2 before version 0.27.3. It has been discovered that an unexpected sign...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.1
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.
- Record
CVE-2018-10887- 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 - CVSS 2.0
- 5.8 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:P - Weakness
- CWE-194, CWE-125, CWE-190, CWE-681
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-10887- Weakness
- CWE-194
- Updated
- 2026-11-02
EUVDEUVD-2018-2951 No score
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.
- Record
EUVD-2018-2951- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-5gcq-g5p3-pjp4
8.1
A flaw was found in libgit2 before version 0.27.3. It has been discovered that an unexpected sign...
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.
- Record
GHSA-5gcq-g5p3-pjp4- 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 - Weakness
- CWE-125, CWE-194
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-10887
8.1
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.
- Record
ALPINE-CVE-2018-10887- 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 - Updated
- 2026-11-02
OSVBELL-CVE-2018-10887
8.1
CVE-2018-10887 does not affect BellSoft software
- Record
BELL-CVE-2018-10887- 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 - Updated
- 2026-11-02
Show 6 moreShow less
OSV
8.1
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.
- Record
CVE-2018-10887- 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 - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-10887
8.1
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.
- Record
DEBIAN-CVE-2018-10887- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-10887
8.1
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.
- Record
UBUNTU-CVE-2018-10887- 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 - CVSS 3.0
- 8.1 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10943-1 No score
libgit2-1_1-1.1.1-1.2 on GA media
These are all security issues fixed in the libgit2-1_1-1.1.1-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10943-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:2469-1 No score
Security update for libgit2
This update for libgit2 to version 0.26.5 fixes the following issues:
The following security vulnerabilities were addressed:
- CVE-2018-10887: Fixed an integer overflow which in turn leads to an out of bound read, allowing to read the base object, which could be exploited by an attacker to cause denial of service (DoS) (bsc#1100613).
- CVE-2018-10888: Fixed an out-of-bound read while reading a binary delta file, which could be exploited by an attacker t ocause a denial of service (DoS) (bsc#1100612).
- CVE-2018-11235: Fixed a remote code execution, which could occur with a crafted .gitmodules file (bsc#1095219)
- CVE-2018-15501: Prevent out-of-bounds reads when processing smart-protocol 'ng' packets (bsc#1104641)
- Record
SUSE-SU-2018:2469-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:3440-1 No score
Security update for libgit2
This update for libgit2 fixes the following issues:
- CVE-2018-8099: Fixed possible denial of service attack via different vectors by not being able to differentiate between these status codes (bsc#1085256).
- CVE-2018-11235: With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs 'git clone --recurse-submodules' because submodule 'names' are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with '../' in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server. (bsc#1095219)
- CVE-2018-10887: It has been discovered that an unexpected sign extension in git_delta_apply function in delta.c file may have lead to an integer overflow which in turn leads to an out of bound read, allowing to read before the base object. An attacker could have used this flaw to leak memory addresses or cause a Denial of Service. (bsc#1100613)
- CVE-2018-10888: A missing check in git_delta_apply function in delta.c file, may lead to an out-of-bound read while reading a binary delta file. An attacker may use this flaw to cause a Denial of Service. (bsc#1100612)
- CVE-2018-15501: A remote attacker can send a crafted smart-protocol 'ng' packet that lacks a '\0' byte to trigger an out-of-bounds read that leads to DoS. (bsc#1104641)
- Record
SUSE-SU-2018:3440-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libgit2Alpine:v3.10 |
before 0.27.3-r0 | 0.27.3-r0 |
libgit2Alpine:v3.11 |
before 0.27.3-r0 | 0.27.3-r0 |
libgit2Alpine:v3.8 |
before 0.27.3-r0 | 0.27.3-r0 |
libgit2Alpine:v3.9 |
before 0.27.3-r0 | 0.27.3-r0 |
libgit2Debian:12 |
before 0.27.4+dfsg.1-0.1 | 0.27.4+dfsg.1-0.1 |
libgit2Debian:13 |
before 0.27.4+dfsg.1-0.1 | 0.27.4+dfsg.1-0.1 |
libgit2Debian:14 |
before 0.27.4+dfsg.1-0.1 | 0.27.4+dfsg.1-0.1 |
libgit2Debian:8 From an advisory covering 3 CVEs |
before 0.21.1-3+deb8u1, plus listed versions 0.21.1-3 |
0.21.1-3+deb8u1 |
libgit2Debian:9 From an advisory covering 7 CVEs |
before 0.25.1+really0.24.6-1+deb9u1, plus listed versions 0.25.1+really0.24.6-1 |
0.25.1+really0.24.6-1+deb9u1 |
libgit2SUSE:Linux Enterprise Module for Development Tools 15 From an advisory covering 4 CVEs |
before 0.26.6-3.5.2 | 0.26.6-3.5.2 |
Show 7 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libgit2SUSE:Linux Enterprise Software Development Kit 12 SP3 From an advisory covering 5 CVEs |
before 0.24.1-7.6.1 | 0.24.1-7.6.1 |
libgit2SUSE:Manager Server 3.1 From an advisory covering 5 CVEs |
before 0.24.1-7.6.1 | 0.24.1-7.6.1 |
libgit2SUSE:Manager Server 3.2 From an advisory covering 5 CVEs |
before 0.24.1-7.6.1 | 0.24.1-7.6.1 |
libgit2Ubuntu:14.04:LTS |
before 0.19.0-2ubuntu0.4, plus listed versions 0.19.0-2 |
0.19.0-2ubuntu0.4 |
libgit2Ubuntu:16.04:LTS |
before 0.24.1-2ubuntu0.2, plus listed versions 0.22.2-20.23.1-10.24.1-2 |
0.24.1-2ubuntu0.2 |
libgit2Ubuntu:18.04:LTS |
before 0.26.0+dfsg.1-1.1ubuntu0.2, plus listed versions 0.25.1+really0.24.6-10.26.0+dfsg.1-1.10.26.0+dfsg.1-1.1build1 |
0.26.0+dfsg.1-1.1ubuntu0.2 |
libgit2openSUSE:Tumbleweed From an advisory covering 15 CVEs |
before 1.1.1-1.2 | 1.1.1-1.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-10887 is a high vulnerability (CVSS 8.1) in Libgit2, published July 10, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.05%, the 81st percentile. Fixed in libgit2 0.27.3-r0.
References
bugzilla.redhat.com/show_bug.cgi?id=1598021
lists.debian.org/debian-lts-announce/2018/08/msg00024.html
github.com/libgit2/libgit2/releases/tag/v0.27.3
github.com/libgit2/libgit2/commit/c1577110467b701dcbcf9439ac225ea851b47d22
github.com/libgit2/libgit2/commit/3f461902dc1072acb8b7607ee65d0a0458ffac2a
lists.debian.org/debian-lts-announce/2022/03/msg00031.html
Show 32 moreShow less
nvd.nist.gov/vuln/detail/CVE-2018-10887
github.com/advisories/GHSA-5gcq-g5p3-pjp4
security.alpinelinux.org/vuln/CVE-2018-10887
docs.bell-sw.com/security/cves/CVE-2018-10887
security-tracker.debian.org/tracker/CVE-2018-10887
suse.com/support/update/announcement/2018/suse-su-20182469-1
bugzilla.suse.com/1095219
bugzilla.suse.com/1100612
bugzilla.suse.com/1100613
bugzilla.suse.com/1104641
suse.com/security/cve/CVE-2018-10887
suse.com/security/cve/CVE-2018-10888
suse.com/security/cve/CVE-2018-11235
suse.com/security/cve/CVE-2018-15501
suse.com/support/update/announcement/2018/suse-su-20183440-1
bugzilla.suse.com/1085256
suse.com/security/cve/CVE-2018-8099
ubuntu.com/security/CVE-2018-10887
cve.org/CVERecord?id=CVE-2018-10887
suse.com/security/cve/CVE-2005-4900
suse.com/security/cve/CVE-2016-10128
suse.com/security/cve/CVE-2016-10130
suse.com/security/cve/CVE-2018-17456
suse.com/security/cve/CVE-2018-8098
suse.com/security/cve/CVE-2019-1348
suse.com/security/cve/CVE-2019-1349
suse.com/security/cve/CVE-2019-1350
suse.com/security/cve/CVE-2019-1351
suse.com/security/cve/CVE-2019-1352
suse.com/security/cve/CVE-2019-1353
suse.com/security/cve/CVE-2019-1354
suse.com/security/cve/CVE-2019-1387