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.
Published: 2026-07-29
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw is a buffer overflow caused by an integer wraparound during the construction of an IVFFlat index in the pgvector extension. The wraparound allows a database user to write data beyond the bounds of allocated memory, potentially enabling the execution of arbitrary code. The vulnerability is classified with a CVSS score of 8.8 and is listed as a high‑severity flaw, but its EPSS score is below one percent, indicating a low likelihood of active exploitation at present.

Affected Systems

pgvector extensions before version 0.8.6 running on 32‑bit PostgreSQL deployments are affected. The issue does not exist on 64‑bit builds or in later releases.

Risk and Exploitability

The likely attack vector is a database user with permission to create IVFFlat indices on a 32‑bit system, which is inferred from the description of the vulnerability, but the exact level of privilege required is not explicitly stated. A memory corruption during index construction provides an attacker with the possibility to execute code with the database process’s privileges. Although the CVSS score is high, the very low EPSS and absence from the CISA KEV list suggest that exploitation is unlikely in the wild at this time. Nevertheless, the potential impact warrants prompt remediation.

Generated by OpenCVE AI on August 2, 2026 at 07:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade pgvector to version 0.8.6 or later on all affected 32‑bit systems.
  • Migrate deployments to 64‑bit environments or ensure that any remaining 32‑bit nodes are isolated and receive the patch immediately.
  • Restrict the privileges of database users who are allowed to create IVFFlat indices until the update is applied.
  • Implement strict least‑privilege controls for database accounts and monitor index‑creation activity for suspicious behavior.

Generated by OpenCVE AI on August 2, 2026 at 07:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 30 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Wed, 29 Jul 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Pgvector
Pgvector pgvector
Vendors & Products Pgvector
Pgvector pgvector

Wed, 29 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 29 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
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.
Title pgvector buffer overflow via integer wraparound in IVFFlat index build on 32-bit systems
Weaknesses CWE-190
CWE-787
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Pgvector Pgvector
cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2026-07-31T03:56:13.731Z

Reserved: 2026-07-28T00:20:11.430Z

Link: CVE-2026-18022

cve-icon Vulnrichment

Updated: 2026-07-29T19:31:00.569Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-29T20:17:02.593

Modified: 2026-07-31T04:17:19.543

Link: CVE-2026-18022

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-29T18:55:54Z

Links: CVE-2026-18022 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T07:45:03Z

Weaknesses