Finding and attribution
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.
Product: PostgreSQL core server. AI system: Claude. Team / organization: Anthropic / Ada Logics.
CVE identifiers: CVE-2026-116331.
AI and human contribution (source account): 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.
Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.
Discovery context: The PostgreSQL security page publicly discloses the issue with the coordinated release. The cited sources do not establish whether exploitation preceded disclosure.
Remediation status: fix documented. 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.
A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.
Disclosed 12 Nov 2026. AI attribution dated 12 Nov 2026. Sources checked 16 Nov 2026; these are separate dates, not a live installation check.
Recorded CVSS: High · highest recorded score 8.8. Documented technical effects: code execution.
Severity, consequences and exploitation evidence
Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.
- CVE-2026-116331: CVSS 3.0 · 8.8 (High) ·
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. PostgreSQL security advisory · checked 16 Nov 2026.
CVE-2026-116331: code execution.
Prerequisites / affected scope: Requires an object creator to define/use the described aggregate type mismatch; code runs as the database server OS user..
Exploitation evidence: No in-the-wild exploitation claim in the cited sources.. Impact source · checked 16 Nov 2026.
Documented fix: 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.