Skip to main content

PostgreSQL CVE-2026-15741

| EUVDEUVD-2026-57846 HIGH
SQL Injection (CWE-89)
2026-08-13 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 GHSA-3v2h-jgrj-9jmm
8.8
CVSS 3.1 · Vendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as low-privilege PostgreSQL user
  2. Delivery
    Create object with hostile EXTRACT() definition
  3. Exploit
    Superuser invokes pg_dump or psql \sf on target database
  4. Execution
    EXTRACT() deparse consumes hostile object definition
  5. Impact
    SQL injection executes under superuser context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to be an authenticated PostgreSQL database user with ownership of at least one database object (e.g., a function, operator, or custom type) in a database that a superuser or privileged DBA user will subsequently subject to a deparse consumer operation. The critical trigger is a superuser (or privileged user) running pg_dump against the database, using psql's \sf command on the hostile object, or invoking any third-party tool that calls PostgreSQL's expression deparse APIs. Without that privileged deparse operation occurring - for example, in environments where pg_dump is never run by a superuser against databases with untrusted object owners - exploitation cannot complete. The CVSS vector supplied (PR:N) conflicts with this requirement; in practice, the attacker must be an authenticated database user with object ownership, which is a meaningful limiting condition.

Impact

The provided CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, 8.8) contains a significant internal conflict: PR:N (no privileges required) directly contradicts the description's explicit prerequisite of being a database 'object owner,' which requires authentication and object ownership - at minimum PR:L. This appears to be an error in the NVD-supplied vector. Correcting PR to L and accounting for the scope change (regular user → superuser) would more accurately represent the realistic attack path. Despite this vector inconsistency, real-world risk remains elevated: UI:R (a superuser must run pg_dump or \sf) is the primary exploitation gate, but these operations are common and routine in production environments. No EPSS score was provided, no CISA KEV listing exists, and no public POC has been identified - all signals that reduce urgency compared to a KEV-listed flaw. However, for multi-tenant environments where untrusted users can own database objects, the privilege escalation path to superuser represents a critical internal trust boundary violation. The missing EPSS data limits quantitative exploitation probability assessment.

Exploit ScenarioDerived

An attacker with a low-privilege PostgreSQL account - sufficient only to own a database object such as a function or custom type - crafts that object's definition to embed SQL injection payloads within an EXTRACT() expression. When a database administrator subsequently runs pg_dump to back up the database or uses psql's \sf command to inspect function source, the deparse layer processes the hostile object definition and the injected SQL executes with the DBA's superuser privileges. No public exploit code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 13, 2026

SQL injection in PostgreSQL's EXTRACT() expression deparse enables a database object owner to escalate privileges and execute arbitrary SQL with superuser rights. Affected across the active PostgreSQL release tree - versions before 14.24, 15.19, 16.15, 17.11, and 18.5 - the flaw is triggered when deparse consumers such as pg_dump or psql's \sf command process a hostile object definition crafted by a low-privilege but authenticated database user. No public exploit code or CISA KEV listing exists at time of analysis; however, the superuser privilege-escalation impact and broad reach of affected deparse consumers make this a high-priority upgrade, particularly for multi-tenant or shared PostgreSQL environments.

RemediationAI

Upgrade to the patched releases as the primary fix: PostgreSQL 18.5, 17.11, 16.15, 15.19, or 14.24, per the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-15741/. If immediate upgrading is not possible, restrict which database users are granted ownership of objects in databases accessible by superusers - specifically, avoid granting object creation (CREATE) privileges to untrusted or low-trust users in shared databases. Additionally, limit who can invoke pg_dump or psql \sf against databases containing untrusted user-owned objects, since those operations are the deparse consumers that trigger the injection. Note that restricting pg_dump may disrupt backup workflows, so this should be a short-term compensating control only. Environments running PostgreSQL 13 or earlier should treat this as an additional reason to migrate to a supported major version, as no patches will be backported.

Affected VersionsENISA

PostgreSQL 15 <15.19
PostgreSQL 0 <14.24
PostgreSQL 17 <17.11
PostgreSQL 16 <16.15
PostgreSQL 18 <18.5

Affected Packages

euvd postgresql fix: 14.24, 15.19, 16.15, 17.11, 18.5

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's expression deparse subsystem is responsible for reconstructing SQL text from internal parse tree representations - a process invoked by utilities such as pg_dump (for schema export), psql's \sf (show function source), and potentially any third-party tool that calls expression deparsing APIs. The specific flaw resides in how the EXTRACT() date/time function's arguments are deparsed: a database user who owns a function, type, or other object can embed a hostile definition that, when processed by the deparse layer, injects raw SQL. CWE-89 (SQL Injection) applies here not in the traditional user-input-to-query pathway but in an internal code-generation pathway - the deparse output itself becomes executable SQL. Because pg_dump and \sf are routinely run by superusers or DBAs against databases containing untrusted objects, the injected SQL inherits the caller's (superuser) execution context. CPE data is not directly provided, but the advisory covers all supported major versions of PostgreSQL (14.x, 15.x, 16.x, 17.x, 18.x) prior to the respective patch releases.

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 (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 9.0 CRITICAL

Object ownership requires authenticated low-privilege access (PR:L); superuser must trigger deparse (UI:R); privilege escalation from regular user to superuser constitutes a scope change (S:C).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 8.0 HIGH

Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).

CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

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

Lifecycle Timeline

2
Patch available
Aug 13, 2026 - 14:02 EUVD
CVE Published
Aug 13, 2026 - 13:17 cve.org
HIGH 8.8

DescriptionCVE.org

SQL injection in PostgreSQL EXTRACT() deparse allows an object owner to execute arbitrary SQL as a superuser via a hostile object definition. Attacks affect expression deparse consumers broadly, including pg_dump, psql commands like \sf, and any similar usage in non-core tools. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.

Executive ViewAI

Why It Matters

PostgreSQL versions 14.x through 18.x contain a SQL injection vulnerability in EXTRACT() that permits database object owners to escalate privileges to superuser and execute arbitrary SQL commands, directly compromising data confidentiality and integrity. No public exploit identified at time of analysis; however, the vulnerability affects all supported PostgreSQL versions and can be triggered by low-privilege authenticated database users. This represents an acute risk for multi-tenant and shared database environments.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Restrict database object creation and modification to trusted roles, disable direct pg_dump and psql \sf access for untrusted users, implement mandatory code review of object definitions before deployment, enforce principle of least privilege on all database roles to limit blast radius, and establish continuous logging and monitoring of deparse operations with alerts for anomalous SQL patterns. These controls reduce but do not eliminate risk pending vendor patch availability.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
High
widely deployed open-source database dominant in enterprise and cloud workloads
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor VulDB

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 HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

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