{"id":"ALPINE-CVE-2018-10887","details":"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.","modified":"2026-10-27T08:30:54.727477692Z","published":"2018-07-10T14:29:00.260Z","upstream":["CVE-2018-10887"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2018-10887"}],"affected":[{"package":{"name":"libgit2","ecosystem":"Alpine:v3.10","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.8","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2","ecosystem":"Alpine:v3.9","purl":"pkg:apk/alpine/libgit2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2-0.27","ecosystem":"Alpine:v3.10","purl":"pkg:apk/alpine/libgit2-0.27?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2-1.0","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/libgit2-1.0?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2-1.0","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/libgit2-1.0?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2-1.1","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/libgit2-1.1?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}},{"package":{"name":"libgit2-1.1","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/libgit2-1.1?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-10887.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"}]}