{
  "id": "CVE-2026-2004",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-2004",
  "published_at": "2026-02-12T13:00:08.857Z",
  "title": "PostgreSQL intarray missing validation of type of input to selectivity estimator 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": "Missing validation of type of input in PostgreSQL intarray extension selectivity estimator function allows an object creator to execute arbitrary code as the operating system user running the database.  Versions before PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21 are affected.",
  "cwe": "CWE-1287",
  "cpes": [
    "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "n/a",
        "product": "PostgreSQL",
        "ranges": [
          "\u003e= 18, \u003c 18.2",
          "\u003e= 17, \u003c 17.8",
          "\u003e= 16, \u003c 16.12",
          "\u003e= 15, \u003c 15.16",
          "\u003c 14.21"
        ],
        "fixed_in": [
          "18.2",
          "17.8",
          "16.12",
          "15.16",
          "14.21"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PostgreSQL to 18.2 or 17.8 or 16.12 or 15.16 or 14.21 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
