{
  "id": "CVE-2026-120149",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-120149",
  "published_at": "2026-11-12T14:15:26.749Z",
  "title": "PostgreSQL FDW batch-insert mismatch executes arbitrary code",
  "product": "PostgreSQL",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Heap-based buffer overflow in PostgreSQL foreign batch inserts allows a foreign server to execute arbitrary code, via reporting that it inserted more rows than the server supplied.  postgres_fdw can legitimately encounter this when a rule on the remote table expands an INSERT into additional rows.  Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.",
  "cwe": "CWE-122",
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "n/a",
        "product": "PostgreSQL",
        "ranges": [
          "\u003e= 18, \u003c 18.7",
          "\u003e= 17, \u003c 17.12",
          "\u003e= 16, \u003c 16.16",
          "\u003e= 15, \u003c 15.20",
          "\u003c 14.25"
        ],
        "fixed_in": [
          "18.7",
          "17.12",
          "16.16",
          "15.20",
          "14.25"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PostgreSQL to 18.7 or 17.12 or 16.16 or 15.20 or 14.25 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
