{
  "id": "cve-2026-116312",
  "title": "PostgreSQL MERGE can place an incorrect row in a trigger transition table",
  "product": "PostgreSQL core server",
  "ai_system": "Claude",
  "organization": "Anthropic / Ada Logics",
  "summary": "On a partitioned-table MERGE that performs an INSERT followed by an UPDATE, inconsistent transition-capture state can cause an AFTER trigger to process the wrong new row.",
  "ai_role": "The release notes explicitly credit Jacek Bylina, Timothy Ball, Claude, and Ada Logics. Collaborative reporting is documented; discovery order and exact AI task allocation are not.",
  "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-116312"
  ],
  "source_url": "https://www.postgresql.org/support/security/CVE-2026-116312/",
  "ai_source_url": "https://www.postgresql.org/docs/release/18.7/",
  "advisory_url": "https://www.postgresql.org/support/security/CVE-2026-116312/",
  "remediation": "fix documented",
  "remediation_note": "Versions before PostgreSQL 18.7, 17.12, 16.16, and 15.20 are affected; versions before 15 are unaffected. Fixed in 18.7, 17.12, 16.16, and 15.20 on 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-116312",
      "version": "3.0",
      "score": 5.4,
      "vector": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
      "source_url": "https://www.postgresql.org/support/security/CVE-2026-116312/",
      "source_name": "PostgreSQL security advisory",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-116312"
      ],
      "consequences": [
        "data modification"
      ],
      "conditions": "A user able to perform the relevant partitioned-table MERGE can cause the AFTER trigger to process a different new row than intended.",
      "exploitation": "The advisory describes the incorrect row handling; it does not report exploitation in the wild.",
      "source_url": "https://www.postgresql.org/support/security/CVE-2026-116312/",
      "checked_date": "2026-11-16"
    }
  ]
}
