CVE-2026-3172
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedBuffer 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA buffer overflow vulnerability exists in pgvector's parallel HNSW (Hierarchical Navigable Small World) index building functionality, affecting versions 0.6.0 through 0.8.1. The overflow allows an authenticated database user to read adjacent memory contents, potentially exposing sensitive data from other database relations, or to trigger a denial of service by crashing the PostgreSQL server.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed pgvector versionRun SELECT extversion FROM pg_extension WHERE extname = 'pgvector'; or check your system's package manager for the pgvector package versionAffected if Version is 0.6.0, 0.6.1, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.8.0, or 0.8.1 (any version from 0.6.0 through 0.8.1 inclusive)
-
Verify HNSW index usageQuery pg_indexes or pg_class to find indexes using the hnsw access method: SELECT indexname, indexdef FROM pg_indexes WHERE indexdef LIKE '%hnsw%';Affected if Any HNSW indexes exist in the database (the vulnerability triggers during HNSW index construction)
-
Check for parallel HNSW index buildsReview index definitions or application code for CREATE INDEX statements using both HNSW and the parallel option (mils_per_step parameter or explicit PARALLEL flag). Run EXPLAIN on existing HNSW indexes to see build parameters.Affected if Parallel building is enabled on HNSW indexes (the vulnerability specifically affects parallel HNSW index builds)
-
Confirm authenticated user accessReview database user permissions and application connection strings to determine if untrusted users have access to create indexesAffected if Untrusted or low-privilege authenticated users can create or rebuild indexes (the attacker needs authenticated database access to trigger the vulnerability)
You are affected if pgvector version is between 0.6.0 and 0.8.1 inclusive, and you have HNSW indexes that may be built or rebuilt with parallel processing enabled.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade pgvector to version 0.8.2 or later, which contains the security fix. After upgrading, rebuild any existing HNSW indexes to ensure they use the corrected code path.
pgvector 0.8.2 or later
- 1. Identify current pgvector version by running: SELECT extversion FROM pg_extension WHERE extname = 'vector';
- 2. Stop PostgreSQL service to ensure no active index builds during upgrade
- 3. Upgrade pgvector to version 0.8.2 or later using your package manager or compile from source (e.g., 'make install' from pgvector repository)
- 4. Verify the upgrade was successful: SELECT extversion FROM pg_extension WHERE extname = 'vector';
- 5. Rebuild any existing HNSW indexes that were created with parallel builds: ALTER INDEX index_name ALTER COLUMN vector SET (optimize = true);
- 6. Restart PostgreSQL service and verify database is functioning normally
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation6.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,312.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-3172 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-3172 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data