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

High 8.8 Published Updated

A database user can trigger arbitrary code execution via an integer overflow in the IVFFlat index build on 32-bit systems.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-18022?

CVE-2026-18022 is a high-severity vulnerability in pgvector, published on 29 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-787, CWE-190

Which versions are affected by CVE-2026-18022?

It affects 1 product.

Products include Pgvector Project Pgvector.

How do I fix CVE-2026-18022?

Upgrade to a fixed version.

Is CVE-2026-18022 being exploited?

There is no known exploitation of CVE-2026-18022 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-18022, ECHO-7790-2ea8-7d0b, GHSA-87hg-xjfg-qh5r, UBUNTU-CVE-2026-18022.

Is CVE-2026-18022 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free