{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:pgvector_project:pgvector:*:*:*:*:*:postgresql:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.8.6"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8ee86c96f0fd72390f890aa8a336fda6d3ab4c6c"
            },
            {
              "fixed": "636a92a3395d2e036ffd40d07aeb400a708ae104"
            }
          ],
          "repo": "https://github.com/pgvector/pgvector",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "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"
  },
  "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.",
  "id": "CVE-2026-18022",
  "modified": "2026-08-22T03:30:49.668822451Z",
  "published": "2026-07-29T18:55:54.658Z",
  "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"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "pgvector buffer overflow via integer wraparound in IVFFlat index build on 32-bit systems"
}