# CVE-2026-16237: PostgreSQL INSERT ... ON CONFLICT can read or modify rows despite auto-updatable view WHERE condition

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-12 · Modified: 2026-11-12
- Aliases: DEBIAN-CVE-2026-16237, ALPINE-CVE-2026-16237, UBUNTU-CVE-2026-16237
- Record: https://cvemate.com/vulnerability/CVE-2026-16237 · JSON: https://cvemate.com/vulnerability/CVE-2026-16237/json

## Description

```text
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.
```

## Signals

- CVSS: 5.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.251%, percentile 17.566%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine postgresql15 (Alpine Linux): \< 15.20-r0
- alpine postgresql16 (Alpine Linux): \< 16.16-r0
- alpine postgresql17 (Alpine Linux): \< 17.12-r0
- alpine postgresql18 (Alpine Linux): \< 18.7-r0
- debian postgresql-15 (Debian): All versions (No fix recorded) \| \< 15.20-0+deb12u1
- debian postgresql-17 (Debian): All versions (No fix recorded) \| \< 17.12-0+deb13u1
- debian postgresql-18 (Debian): All versions (No fix recorded) \| \< 18.7-1
- ubuntu postgresql-10 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-12 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-14 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-16 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-18 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.5 (Ubuntu): All versions (No fix recorded)

## References

- <https://www.postgresql.org/support/security/CVE-2026-16237/>
- <https://security-tracker.debian.org/tracker/CVE-2026-16237>
- <https://security.alpinelinux.org/vuln/CVE-2026-16237>
- <https://ubuntu.com/security/CVE-2026-16237>
- <https://www.cve.org/CVERecord?id=CVE-2026-16237>
- <https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/>

---

Data as of 2026-12-05T03:12:45.407Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
