Skip to main content

PostgreSQL CVE-2026-120154

| EUVDEUVD-2026-124428 MEDIUM
Improper Protection of Alternate Path (CWE-424)
2026-11-12 PostgreSQL GHSA-9pxp-38rf-5pgv
4.3
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privileged DB user
  2. Delivery
    Target RLS-protected table with INSERT/UPDATE/SELECT rights
  3. Exploit
    Iterate INSERT ... ON CONFLICT DO UPDATE
  4. Execution
    Observe conflict behavior to read hidden rows
  5. Impact
    Exfiltrate data bypassing row security policy

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Alternate path protection
Exploitation Conditions

Exploitation requires an authenticated PostgreSQL user who already holds INSERT, UPDATE, and the applicable SELECT privileges on the target table, and the target table must have row-level security (row security policies) enabled - otherwise there is nothing to bypass. The specific trigger is iterated INSERT ... ON CONFLICT DO UPDATE statements used to read rows the RLS policy should restrict. Limiting factors: this is not remotely exploitable by an unauthenticated attacker (PR:L); it only exposes data in tables where RLS is both in use and relied upon for confidentiality; impact is read-only (the advisory states it does not facilitate improper writes); and it is bounded to data reachable through the abused table. Deployments that do not use row security policies are not affected in practice.

Impact

This is a genuinely moderate, not high-urgency, issue and the signals are internally consistent. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, base 4.3) describes a network-reachable but privileged (PR:L) flaw with limited confidentiality impact and no integrity or availability impact - matching a read-only row-security-policy bypass. The vuln.today decision label is 'this_month', not 'act_now' or 'emergency', consistent with the low-moderate score. No EPSS score, no CISA KEV listing, and no PoC reference are present in the input, so exploitation status is 'no public exploit identified at time of analysis'. The attacker is not an outsider: PR:L plus the description's requirement for INSERT, UPDATE, and SELECT privileges means an already-authenticated database user who abuses legitimate access to read rows row-level security (RLS) was meant to hide. The description explicitly scopes impact to improper reads and contrasts this with CVE-2026-16237 ('this does not facilitate improper writes'), which aligns with I:N/A:N. Net: a real correctness/confidentiality defect worth patching on a normal cycle, but not an internet-facing unauthenticated emergency; its relevance is limited to deployments that actually use row security policies.

Exploit ScenarioDerived

A low-privileged but authenticated database user who holds INSERT, UPDATE, and SELECT rights on a table protected by row-level security issues repeated INSERT ... ON CONFLICT DO UPDATE statements, using the conflict-handling path to infer and read rows that their row security policy should hide. The attack is remote over a normal database connection (AV:N) and low-complexity (AC:L), but confined to data readable through this one table. No public exploit code is identified at time of analysis, though the technique is described concretely enough to reproduce.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 12, 2026

Row-level security bypass in PostgreSQL 14.x through 18.x lets an authenticated database user who already holds INSERT, UPDATE, and the applicable SELECT privileges on a table read every row of that table despite row security policies, by iterating INSERT ... ON CONFLICT DO UPDATE statements against it. Exposure is limited to tables where row-level security is actually enabled and relied upon for confidentiality, and the flaw is read-only - the advisory states it does not facilitate improper writes, unlike CVE-2026-16237. Vendor fixes are published in PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25; no public exploit code has been identified at time of analysis, and EPSS scoring was not available in the supplied data.

RemediationAI

Vendor-released patch: upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25 according to your release branch, as documented at https://www.postgresql.org/support/security/CVE-2026-120154/. Until the upgrade is applied, exposure can be reduced by removing the enabling prerequisites the assessment identifies: revoke INSERT and UPDATE privileges from roles that do not genuinely need to write to RLS-protected tables, and avoid treating RLS as the sole confidentiality control for tables where untrusted roles already hold INSERT, UPDATE, and SELECT - the trade-off is reduced application functionality or the need to move sensitive filtering into views or separate schemas. Because the bypass requires row security policies on the target table, environments that do not use RLS require no compensating action beyond normal patching. Audit logs for iterated INSERT ... ON CONFLICT DO UPDATE activity against RLS-protected tables from low-trust roles as a detection measure, noting that this produces only detective, not preventive, coverage.

Affected VersionsENISA

PostgreSQL 0 <14.25
PostgreSQL 17 <17.12
PostgreSQL 15 <15.20
PostgreSQL 18 <18.7
PostgreSQL 16 <16.16

Affected Packages

euvd postgresql fix: 14.25, 15.20, 16.16, 17.12, 18.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PostgreSQL row-level security (RLS) attaches per-command policies to a table so that SELECT, INSERT, UPDATE, and DELETE each see only the rows their policy permits. The flaw is classified as CWE-424, Improper Protection of Alternate Path: the INSERT ... ON CONFLICT DO UPDATE ("upsert") code path reaches existing rows through a route whose policy enforcement does not match the primary SELECT path, so a user can pull back row contents that their SELECT policy should have filtered. Per the independent assessment, the trigger is specifically iterated upsert statements used to read restricted rows, and the behaviour is confined to the data reachable through the abused table; the sources do not document further implementation detail of the policy check. The CVSS vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N confirms this is a network-reachable, low-complexity issue requiring authenticated privileges (PR:L) with no user interaction, scored only for partial confidentiality impact and no integrity or availability impact - consistent with a read-only bypass. Affected CPE coverage is the generic PostgreSQL entry (cpe:2.3:a:n/a:postgresql:*:*:*:*:*:*:*:*), and the practical precondition is that RLS be in use and treated as a confidentiality boundary; deployments without row security policies are not affected in practice.

Know when PostgreSQL gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 4.3 MEDIUM

Authenticated user needs table privileges (PR:L) over a normal network connection (AV:N/AC:L); read-only RLS bypass gives limited confidentiality (C:L) with no integrity or availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 4.3 MEDIUM

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 15:02 EUVD
CVE Published
Nov 12, 2026 - 14:15 cve.org
MEDIUM 4.3

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
High
PostgreSQL is among the most widely deployed enterprise databases
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy