{"id":"CVE-2026-18022","summary":"pgvector buffer overflow via integer wraparound in IVFFlat index build on 32-bit systems","details":"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.","modified":"2026-11-05T03:31:26.108842893Z","published":"2026-07-29T18:55:54.658Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18022.json","cna_assigner":"PostgreSQL","cwe_ids":["CWE-190","CWE-787"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18022.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18022"},{"type":"REPORT","url":"https://github.com/pgvector/pgvector/issues/1006"},{"type":"FIX","url":"https://github.com/pgvector/pgvector/commit/636a92a3395d2e036ffd40d07aeb400a708ae104"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pgvector/pgvector","events":[{"introduced":"0"},{"fixed":"8ee86c96f0fd72390f890aa8a336fda6d3ab4c6c"},{"fixed":"636a92a3395d2e036ffd40d07aeb400a708ae104"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:pgvector_project:pgvector:*:*:*:*:*:postgresql:*:*","range":[{"introduced":"0"},{"fixed":"0.8.6"}]},{"range":[{"fixed":"636a92a3395d2e036ffd40d07aeb400a708ae104"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v0.8.5","v0.8.4","v0.8.3","v0.8.2","v0.8.1","v0.8.0","v0.7.4","v0.7.3","v0.7.2","v0.7.1","v0.7.0","v0.6.2","v0.6.1","v0.6.0","v0.5.1","v0.5.0","v0.4.4","v0.4.3","v0.4.2","v0.4.1","v0.4.0","v0.3.2","v0.3.1","v0.3.0","v0.2.7","v0.2.6","v0.2.5","v0.2.4","v0.2.3","v0.2.2","v0.2.1","v0.2.0","v0.1.8","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-18022.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}