PostgreSQL INSERT ... ON CONFLICT can read or modify rows despite auto-updatable view WHERE condition
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CVE の記録PostgreSQL |
≥ 18, < 18.7→ 18.7 ≥ 17, < 17.12→ 17.12 ≥ 16, < 16.16→ 16.16 ≥ 15, < 15.20→ 15.20 < 14.25→ 14.25 |
18.7 17.12 16.16 15.20 14.25 |
| Bitnamipostgresql |
< 14.25.0→ 14.25.0 ≥ 15.0.0, < 15.20.0→ 15.20.0 ≥ 16.0.0, < 16.16.0→ 16.16.0 ≥ 17.0.0, < 17.12.0→ 17.12.0 ≥ 18.0.0, < 18.7.0→ 18.7.0 |
14.25.0 15.20.0 16.16.0 17.12.0 18.7.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2026-16237 postgresql18, postgresql17, postgresql16 +1 more Fix available
- BellSoft Alpaquita BELL-CVE-2026-16237 postgresql18, postgresql17, postgresql15 Fix available
- Debian DEBIAN-CVE-2026-16237 postgresql-18, postgresql-17, postgresql-15 Fix available
- Ubuntu UBUNTU-CVE-2026-16237 postgresql-18, postgresql-16, postgresql-14 +4 more No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- REDHAT Red Hat
- web postgresql.org
- web nvd.nist.gov
- web postgresql.org
- web github.com