Skip to main content

PostgreSQL CVE-2026-16237

| EUVDEUVD-2026-124430 MEDIUM
Improper Protection of Alternate Path (CWE-424)
2026-11-12 PostgreSQL GHSA-wrm7-crvq-vpv9
5.4
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with INSERT+UPDATE on auto-updatable view
  2. Exploit
    Issue iterated INSERT ... ON CONFLICT DO UPDATE
  3. Execution
    Bypass view WHERE / security_barrier filter
  4. Impact
    Read and modify all base-table rows

Vulnerability Assessment

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

Requires an auto-updatable PostgreSQL view whose WHERE condition (including security_barrier views) is used to confine a principal to a subset of base-table rows, and the attacker must already possess both INSERT and UPDATE privileges on that specific view. Exploitation is performed through iterated INSERT ... ON CONFLICT DO UPDATE statements. Limiting factors: the attacker must be authenticated and already granted INSERT+UPDATE on the view (PR:L), exposure is bounded to the base table underlying that view, there is no availability impact, and environments that do not rely on auto-updatable views for row-level confinement are not exposed. Running an affected version (before 18.7, 17.12, 16.16, 15.20, or 14.25) is required.

Impact

This is a moderate-severity authorization (row-filtering) bypass, not a high-urgency emergency. The vendor CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N, base 5.4) tells a consistent story: the attacker reaches PostgreSQL over the network but must already hold INSERT and UPDATE privileges on an auto-updatable view (PR:L), and the impact is partial read and write (C:L/I:L) limited to the base table behind that view, with no availability effect (A:N). The vuln.today decision label is 'this_month' - a routine patch cadence, not act_now/emergency. No EPSS score, CISA KEV listing, POC/exploit reference, or SSVC decision framework values were supplied in the input, so exploitation probability and automatability cannot be assessed from the data provided; absence of these is not evidence either way. The realistic risk is an insider or a compromised low-privilege database account that was intentionally confined to a row-filtered view (via WHERE / security_barrier) escalating to see and alter every row in the underlying base table. Note the 'Authentication Bypass' tag overstates the mechanism: this bypasses the view's WHERE row filter for an already-authenticated principal, so it is an access-control/authorization bypass rather than an authentication bypass - defenders should treat it as a privilege-confinement failure.

Exploit ScenarioDerived

A database user who has been deliberately restricted to a subset of rows through an auto-updatable view - granted only INSERT and UPDATE on that view - repeatedly issues INSERT ... ON CONFLICT DO UPDATE statements to probe and overwrite rows that the view's WHERE clause (even a security_barrier view) was meant to hide. Over successive iterations the attacker reads back and modifies every row in the view's base table, defeating the intended row-level confinement. No public exploit was identified in the provided data, and the attack requires the attacker to already hold valid INSERT and UPDATE privileges on the view.

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

PostgreSQL improperly protects the INSERT ... ON CONFLICT path on auto-updatable views, allowing an authenticated user who already holds both INSERT and UPDATE privileges on a view to bypass the view's WHERE condition and read or modify rows in the view's base table. Iterated INSERT ... ON CONFLICT DO UPDATE statements can reach every row in the base table, and the bypass applies even when the view is defined with security_barrier. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected; this is a moderate-severity authorization and row-filtering bypass with CVSS 5.4, no confirmed active exploitation, and no public exploit identified at time of analysis.

RemediationAI

Upgrade to the fixed PostgreSQL release for your branch: 18.7, 17.12, 16.16, 15.20, or 14.25. The vendor advisory at https://www.postgresql.org/support/security/CVE-2026-16237/ should be reviewed before rollout. Until the upgrade is applied, restrict INSERT and UPDATE privileges on auto-updatable views that are used for row-level confinement, or replace those views with controlled functions or direct base-table access patterns that do not rely on the affected INSERT ... ON CONFLICT rewrite path; either workaround can break existing application write paths and should be validated in staging.

Affected VersionsENISA

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

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

CWE-424 (Improper Protection of Alternate Path) describes the root issue: PostgreSQL's auto-updatable view mechanism normally rewrites operations against a view into operations on its base table while applying the view's WHERE condition, but the INSERT ... ON CONFLICT DO UPDATE path does not preserve that protection. An attacker who can issue INSERT and UPDATE against the view can therefore use repeated INSERT ... ON CONFLICT DO UPDATE statements to operate on rows that should have been filtered out by the view definition. The bypass is explicitly noted to work whether or not the view is a security_barrier view, because security_barrier affects qualifier pushdown and leakproofness rather than this alternate write path. The CPE entry identifies PostgreSQL broadly (cpe:2.3:a:n/a:postgresql:*:*:*:*:*:*:*:*), and the authoritative advisory is the PostgreSQL security page for CVE-2026-16237.

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 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Network-reachable database (AV:N) but attacker must already hold INSERT+UPDATE on the view (PR:L); partial read/write confined to one base table (C:L/I:L), no availability or scope change.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 5.4 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
Low
Availability
None

Lifecycle Timeline

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

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
High
PostgreSQL is among the most widely deployed enterprise and open-source databases
Social Media
2
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

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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