CVE-2026-3172

pgvector buffer overflow in parallel HNSW index build

Published Feb 25, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
Buffer overflow in parallel HNSW index build in pgvector 0.6.0 through 0.8.1 allows a database user to leak sensitive data from other relations or crash the database server.

Analysis

AI-generated

Technical impact

This vulnerability is a buffer overflow that occurs during the parallel construction of an HNSW index in the pgvector extension, allowing a database user to read memory from other database relations or to cause the Postgres process to crash. The weakness involves a classic memory overrun (CWE‑120) combined with signed integer overflows and signed/unsigned mismatches (CWE‑190, CWE‑191) and a use‑after‑free scenario (CWE‑787).

Affected Systems

It affects any pgvector installation from version 0.6.0 through 0.8.1, meaning any PostgreSQL database that has the pgvector extension installed and permits users to build or rebuild HNSW indexes in parallel will be vulnerable.

Risk and Exploitability

The CVSS score of 8.1 signifies high severity, while the EPSS probability is less than 1% and the vulnerability is not listed in CISA's KEV catalog. It is inferred that the attack vector is local, requiring a database user with the privilege to initiate parallel index builds. Exploitation could enable an attacker to read confidential data from other tables or cause a database crash, potentially leading to a denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pgvector to a version newer than 0.8.1 to apply the buffer‑overflow fix.
  • If an upgrade cannot be performed immediately, configure ‘max_parallel_workers_per_gather’ to 0 or otherwise prevent parallel execution when building HNSW indexes, forcing serial builds.
  • Limit the role set that has permission to create or rebuild pgvector HNSW indexes to trusted users only.

Generated by OpenCVE AI on April 18, 2026 at 17:39 UTC.

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Pgvector
Pgvector pgvector
Vendors & Products Pgvector
Pgvector pgvector
Type Values Removed Values Added
Description Buffer overflow in parallel HNSW index build in pgvector 0.6.0 through 0.8.1 allows a database user to leak sensitive data from other relations or crash the database server.
Title pgvector buffer overflow in parallel HNSW index build
Weaknesses CWE-191
CWE-787
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-190

    Integer Overflow or Wraparound

  • CWE-191

    Integer Underflow (Wrap or Wraparound)

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Feb 26, 2026, 3:04 PM
Reserved
Feb 24, 2026, 10:42 PM
Status
Deferred
Published
Feb 25, 2026, 9:16 PM
Modified
Jun 17, 2026, 10:43 AM
Severity
Moderate
Public date
Feb 25, 2026, 8:59 PM