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.
{
"cna_assigner": "PostgreSQL",
"cwe_ids": [
"CWE-190",
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18022.json"
}{
"cpe": "cpe:2.3:a:pgvector_project:pgvector:*:*:*:*:*:postgresql:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.8.6"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-18022.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "329085292504724943918461616904557508252",
"length": 4100
},
"id": "CVE-2026-18022-5ec89c57",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/pgvector/pgvector/commit/636a92a3395d2e036ffd40d07aeb400a708ae104",
"target": {
"file": "src/ivfkmeans.c",
"function": "ElkanKmeans"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"254106014391857788056050272837023107210",
"34496893817453625261447123547990150478",
"145370114312184736124763071630652976056",
"306171363503326756789907812980681882020"
],
"threshold": 0.9
},
"id": "CVE-2026-18022-ceedddd2",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/pgvector/pgvector/commit/8ee86c96f0fd72390f890aa8a336fda6d3ab4c6c",
"target": {
"file": "src/vector.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"213476760492371781744053316340842841286",
"260683006695781656823042648565548588297",
"153625410147375798832024934637607756089",
"141959024548119317922716273957587397085",
"68683923418509379215548593895653225396",
"224638568996935360512912174812753397697",
"145272983797897247744597925152620362663",
"2772089553074562554442941599667296853",
"159118468369887291904664309946890710708",
"257822789843458663749238089775594790135",
"53989657463159054242802811260456382351",
"37296551765579248738226793543615980269"
],
"threshold": 0.9
},
"id": "CVE-2026-18022-d21979f2",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/pgvector/pgvector/commit/636a92a3395d2e036ffd40d07aeb400a708ae104",
"target": {
"file": "src/ivfkmeans.c"
}
}
]
"2026-08-22T09:15:40Z"