CVE-2018-8098: libgit2 - Integer Overflow
- Cve: CVE-2018-8098
- Name: libgit2 - Integer Overflow
- Description: Integer overflow in the index.c:read_entry() function while decompressing a compressed prefix length in libgit2 before v0.26.2 allows an attacker to cause a denial of service (out-of-bounds read) via a crafted repository index file.
- Impact: Attackers can cause denial of service through out-of-bounds read, potentially crashing the application or exposing sensitive memory.
- Remediation: Update to version v0.26.2 or later.
- Vulnerability type: integer_overflow
- Vulnerability impact: denial_of_service, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Epss score: 0.01426
- Epss percentile: 0.73639
- Assignee: [email protected]
- Published at: 2018-03-14T00:29:00Z
- Age in days: 3177
- Modified at: 2026-06-17T02:04:15Z
- Patch available: yes
- References total: 4
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-8098
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-190 | Integer Overflow or Wraparound |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/libgit2/libgit2/commit/3207ddb0103543da8ad2139ec6539f590f9900c1 | Patch, Third Party Advisory |
| https://github.com/libgit2/libgit2/commit/3db1af1f370295ad5355b8f64b865a2a357bcac0 | Patch, Third Party Advisory |
| https://libgit2.github.com/security/ | Patch, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/03/msg00031.html | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| libgit2:libgit2 | < 0.26.2 | no | nvd | /v1/products/libgit2/libgit2 |
| debian:debian_linux | = 9.0 | no | nvd | /v1/products/debian/debian_linux |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| libgit2/libgit2 | commit, fix | yes | /v1/repositories/libgit2/libgit2 |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 4706702
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports