{
  "id": "CVE-2026-16238",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-16238",
  "published_at": "2026-08-13T13:00:12.45Z",
  "title": "PostgreSQL type confusion in pg_restore_attribute_stats() 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": "Type confusion in PostgreSQL pg_restore_attribute_stats() allows an object creator to execute arbitrary code as the operating system user running the database, via conflation of range and multirange values.  Within major version 18, minor versions before PostgreSQL 18.6 are affected.  Versions before PostgreSQL 18 are unaffected.",
  "cwe": "CWE-843",
  "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.6"
        ],
        "fixed_in": [
          "18.6"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PostgreSQL to 18.6 or later."
    ],
    "workarounds": [
      "Revoke public EXECUTE permission on the function"
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
