# CVE-2026-120154: PostgreSQL INSERT ... ON CONFLICT can read rows despite row security policies

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, 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-120154, ALPINE-CVE-2026-120154, UBUNTU-CVE-2026-120154
- Record: https://cvemate.com/vulnerability/CVE-2026-120154 · JSON: https://cvemate.com/vulnerability/CVE-2026-120154/json

## Description

```text
Improper protection in PostgreSQL INSERT ... ON CONFLICT allows an attacker having INSERT, UPDATE, and applicable SELECT privileges on the table to read every row despite row security policies, via iterated INSERT ... ON CONFLICT DO UPDATE.  Unlike CVE-2026-16237, this does not facilitate improper writes.  Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
```

## Signals

- CVSS: 4.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.285%, percentile 22.526%, 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-120154/>
- <https://security-tracker.debian.org/tracker/CVE-2026-120154>
- <https://security.alpinelinux.org/vuln/CVE-2026-120154>
- <https://ubuntu.com/security/CVE-2026-120154>
- <https://www.cve.org/CVERecord?id=CVE-2026-120154>
- <https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/>

---

Data as of 2026-12-05T06:27:04.670Z. 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
