From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #1006: Buffer overflow with IVFFlat index build on 32-bit systems
Date: Wed, 29 Jul 2026 18:41:34 +0000
Message-ID: <gh-pgvector-pgvector-1006@github.com> (raw)
An integer wraparound on 32-bit systems allows a database user with the ability to create an IVFFlat index to write data out-of-bounds, which could lead to arbitrary code execution.
This vulnerability has been assigned CVE-2026-18022.
Versions Affected: 0.8.5 and below
Fixed Versions: 0.8.6
## Mitigation
All users running pgvector on a 32-bit system should upgrade when possible.
## Credits
Thanks to 0xJi3F for reporting this, as well as Thai Son Dinh from VinSOC Labs.