{
  "id": "cve-2026-116331",
  "title": "PostgreSQL min/max aggregate optimization can cause type confusion",
  "product": "PostgreSQL core server",
  "ai_system": "Claude",
  "organization": "Anthropic / Ada Logics",
  "summary": "A user-defined aggregate with a SORTOP option can make the planner treat input and result values as the same type even when they differ. The resulting type confusion can allow an object creator to execute arbitrary code as the server OS user.",
  "ai_role": "The release notes explicitly credit Zheng Yu, Claude, and Ada Logics for this issue. The human co-reporter is preserved; this does not establish autonomous or first discovery.",
  "disclosure_date": "2026-11-12",
  "ai_attribution_date": "2026-11-12",
  "classification": "disclosure",
  "classification_note": "The PostgreSQL security page publicly discloses the issue with the coordinated release. The cited sources do not establish whether exploitation preceded disclosure.",
  "cves": [
    "CVE-2026-116331"
  ],
  "source_url": "https://www.postgresql.org/support/security/CVE-2026-116331/",
  "ai_source_url": "https://www.postgresql.org/docs/release/18.7/",
  "advisory_url": "https://www.postgresql.org/support/security/CVE-2026-116331/",
  "remediation": "fix documented",
  "remediation_note": "Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected; fixed in the corresponding releases 2026-11-12. The release notes state full composite-type protections may require rebuilding C-language extensions; that caveat applies to the composite-type defense family, not automatically every case. Fixed releases do not establish downstream deployment.",
  "checked_date": "2026-11-16",
  "cvss": [
    {
      "cve": "CVE-2026-116331",
      "version": "3.0",
      "score": 8.8,
      "vector": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "source_url": "https://www.postgresql.org/support/security/CVE-2026-116331/",
      "source_name": "PostgreSQL security advisory",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-116331"
      ],
      "consequences": [
        "code execution"
      ],
      "conditions": "Requires an object creator to define/use the described aggregate type mismatch; code runs as the database server OS user.",
      "exploitation": "No in-the-wild exploitation claim in the cited sources.",
      "source_url": "https://www.postgresql.org/support/security/CVE-2026-116331/",
      "checked_date": "2026-11-16"
    }
  ]
}
