CVE-2026-120154

PostgreSQL INSERT ... ON CONFLICT can read rows despite row security policies

Published Nov 12, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability involves improper access control (CWE-268), allowing an attacker with INSERT, UPDATE, and SELECT privileges on a table to read every row even when row‑level security policies are enabled, by repeatedly issuing INSERT … ON CONFLICT DO UPDATE statements. The primary effect is the illicit disclosure of data that the attacker should not be able to view, and it does not enable improper writes or privilege escalation.

Affected Systems

PostgreSQL database engines before version 18.7, 17.12, 16.16, 15.20, and 14.25 are affected. The flaw exists in all installations of these releases regardless of configuration, as long as the attacker can execute the identified SQL commands. The vulnerability is part of PostgreSQL’s core INSERT semantics and therefore impacts every database instance of the affected versions.

Risk and Exploitability

The CVSS score of 4.3 indicates a moderate risk. The EPSS score is 0.00295, indicating a roughly 0.3% exploitation probability, and the flaw is not listed in CISA KEV, which suggests that public exploitation likelihood is low. Nevertheless, the requirement for INSERT, UPDATE, and SELECT rights on a target table means that the attack is viable from any internal application or user that is granted those privileges. An attacker can therefore gain unauthorized read access without altering data or elevating privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to 18.7 or later, 17.12 or later, 16.16 or later, 15.20 or later, or 14.25 or later, to receive the patch that implements proper access control (CWE-268).
  • If an upgrade is not possible, restrict the INSERT and UPDATE privileges of roles that do not need them, reducing the window for the access control flaw (CWE-268).
  • Review and audit the use of INSERT … ON CONFLICT DO UPDATE in application logic and ensure that row‑level security policies are correctly applied, effectively addressing the logical flaw.

Generated by OpenCVE AI on November 14, 2026 at 21:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4905-1 postgresql-15 security update
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Weaknesses CWE-268
Vendors & Products Postgresql
Postgresql postgresql
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Description 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.
Title PostgreSQL INSERT ... ON CONFLICT can read rows despite row security policies
Weaknesses CWE-424
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses
  • CWE-268

    Privilege Chaining

  • CWE-424

    Improper Protection of Alternate Path

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Nov 12, 2026, 9:42 PM
Reserved
Oct 30, 2026, 10:45 PM
Status
Awaiting Analysis
Published
Nov 12, 2026, 3:17 PM
Modified
Nov 12, 2026, 10:19 PM
Severity
Moderate
Public date
Nov 12, 2026, 2:15 PM