CVE-2018-10887
Reported by redhat · Published July 10, 2018
rugged is fixed in 0.27.3 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rugged | RubyGems | 0.27.3 |
| pygit2 | PyPI | 0.27.3 |
| libgit2-1.0 | Alpine | 0.27.3-r0 |
| libgit2 | Alpine | 0.27.3-r0 |
| libgit2 | libgit2 | 0.27.3 |
| libgit2 | Ubuntu:18.04:LTS | 0.26.0+dfsg.1-1.1ubuntu0.2 |
| libgit2 | Ubuntu:16.04:LTS | 0.24.1-2ubuntu0.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| libgit2 | libgit2 | before version 0.27.3 |
| RubyGems | rugged | 0 |
| alpine | libgit2-1.0 | 0 |
| alpine | libgit2 | 0 |
| PyPI | pygit2 | 0 |
| libgit2 | libgit2 | 0 |
| alpine | libgit2-0.27 | 0 |
| alpine | libgit2-1.1 | 0 |
Timeline
- Jul 10, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Mar 23, 2026 Security Advisory
- Sep 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-10887
vulnetix vdb fixes CVE-2018-10887
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-10887/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- [debian-lts-announce] 20180825 [SECURITY] [DLA 1477-1] libgit2 security update mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- [debian-lts-announce] 20220321 [SECURITY] [DLA 2936-1] libgit2 security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2018-10887 advisory