PostgreSQL · published 2026-11-12
CVE-2026-16237PostgreSQL INSERT ... ON CONFLICT can read or modify rows despite auto-updatable view WHERE condition
Routine No exploitation evidence; EPSS 0.3%.
CVE-2026-16237 is not known to be exploited in the wild. EPSS estimates a 0.3% chance of exploitation in the next 30 days, higher than 20% of all CVEs. This PostgreSQL vulnerability: CVSS 5.4 (v3.1). Fixed upstream in PostgreSQL 18.7, 17.12, 16.16, 15.20 (+1 more); patched packages are out for Debian; Ubuntu and Red Hat Enterprise Linux still have unfixed releases. Routine: patch when convenient.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
Fixed upstream in PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25.
Linux distribution packages
If you run the distro’s package rather than an upstream build, this is the version to look for.
| Distro | Release | Package | Status |
|---|---|---|---|
| Debian | 13 trixie | postgresql-17 | Fixed in 17.12-0+deb13u1 |
| 12 bookworm | postgresql-15 | Fixed in 15.20-0+deb12u1 | |
| Ubuntu | 26.04 LTS | postgresql-18 | No fix yet |
| 24.04 LTS | postgresql-16 | No fix yet | |
| 22.04 LTS | postgresql-14 | No fix yet | |
| 20.04 LTS | postgresql-12 | No fix yet | |
| Red Hat Enterprise Linux | RHEL 10 | postgresql16 | No fix yet |
| RHEL 10 | postgresql18 | No fix yet | |
| RHEL 10 | postgresql19 | Not affected | |
| RHEL 9 | postgresql | No fix yet | |
| RHEL 8 | postgresql | No fix yet | |
| RHEL 7 | postgresql | No fix yet | |
| RHEL 6 | postgresql | Won’t fix |
From the Debian Security Tracker, Ubuntu security notices (CC BY-SA 4.0) and Red Hat Security Data (CC BY 4.0). Check the distro link before acting.
Patch events
DatabasePostgreSQL
PostgreSQL security releases: 18.7, 17.12, 16.16, 15.20, 14.25
Upgrade to
18.717.1216.1615.2014.25Why: Vendor security release for server software (most severe: CVE-2026-116326).
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | No | CISA KEV |
| Ransomware use | — | CISA KEV |
| EPSS (30-day exploitation probability) | 0.3% (20th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 5.4 (v3.1)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N | CNA / CISA ADP |
| SSVC exploitation | none | CISA Vulnrichment |
| SSVC automatable | No | CISA Vulnrichment |
| SSVC technical impact | partial | CISA Vulnrichment |
Affected versions (from the CVE record)#
- PostgreSQL
18to before18.7(affected)17to before17.12(affected)16to before16.16(affected)15to before15.20(affected)0to before14.25(affected)
Description (from the CVE record)#
Improper protection in PostgreSQL INSERT ... ON CONFLICT on auto-updatable views allows an attacker having INSERT and UPDATE privileges on the view to read and modify every row in the view's base table, via iterated INSERT ... ON CONFLICT DO UPDATE. This bypasses the view's WHERE condition, whether or not the view is a security_barrier view. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Quoted from the CVE Program record.