Skip to main content

PostgreSQL CVE-2026-6472

| EUVDEUVD-2026-30282 MEDIUM
Missing Authorization (CWE-862)
2026-05-14 PostgreSQL GHSA-3276-f9jg-jf2x
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 to database
  2. Delivery
    Create malicious type in accessible schema
  3. Exploit
    Observe victim's query execution
  4. Execution
    Victim's search_path resolves to attacker's type
  5. Persist
    Attacker's function logic executes
  6. Impact
    Sensitive data stolen or system compromised

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

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

Exploitation Conditions

Exploitation requires: (1) valid authenticated database access (user must be able to connect and issue SQL commands), (2) CREATE TYPE or equivalent schema modification permission in at least one schema earlier in the search_path of the target user or application, and (3) knowledge of or ability to observe the search_path order and object names used by victim queries. The vulnerability is NOT automatically exploitable against default PostgreSQL configurations where only superusers can create types and users do not have overlapping schema access. However, in environments where application service accounts or regular users are granted CREATE TYPE privileges, or where shared public schemas are writable, the risk is substantial. No special PostgreSQL configuration options (such as specific GUC parameters) enable or disable this vulnerability - it is a fundamental design gap in authorization checks for CREATE TYPE. The attack does NOT require escalation to superuser or OS-level access; the attacker operates entirely within the authenticated database session.

Impact

CVSS 5.4 (AV:N/AC:L/PR:L/UI:N/S:U) correctly reflects that network access is available, complexity is low, and no user interaction is required - however, the PR:L (authentication required) requirement is a significant limiting factor. EPSS and KEV status are not provided, so real-world exploitation likelihood cannot be confirmed from threat intelligence feeds. The attack requires: (1) valid database authentication, (2) knowledge of target schemas and search_path ordering, and (3) ability to create types in an accessible schema - these preconditions reduce casual exploitation risk but are readily met by disgruntled DBAs, insider threats, or attackers with database credentials via credential theft. In shared PostgreSQL environments (cloud databases, SaaS platforms with per-tenant schemas) or organizations where application service accounts have CREATE permissions, this is a legitimate privilege escalation vector. The low CVSS scope (S:U, no cross-account impact) suggests impact is limited to the affected schema/database, but the ability to execute arbitrary functions is serious - SQL functions can read data, modify schema, or attempt OS interaction if the database runs with elevated privileges. This warrants priority in multi-tenant deployments but is lower risk in single-tenant, air-gapped, or high-authentication-assurance environments. Absence of KEV/EPSS/POC data prevents assessment of wild exploitation.

Exploit ScenarioDerived

An authenticated database user (e.g., a mid-level application service account) creates a custom type named json in the public schema. Later, when a highly-privileged application function executes a query that implicitly resolves json through search_path (e.g., CREATE TABLE foo (data json)), PostgreSQL resolves the reference to the attacker's malicious json type instead of the trusted pg_catalog version. The attacker-controlled type includes a domain validator or type cast function that executes arbitrary SQL, stealing or modifying sensitive data, or escalating privileges by querying or altering system tables.

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

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

Alert me

AnalysisAIv1 – May 14, 2026

Missing authorization in PostgreSQL CREATE TYPE allows authenticated users to hijack search_path resolution and force other database users to execute arbitrary SQL functions chosen by the attacker. An authenticated attacker can create a malicious user-defined type in a schema that appears earlier in a victim's search_path than legitimate extension or system types, causing the victim's queries to execute attacker-controlled functions instead of intended ones. This affects PostgreSQL versions 14.x before 14.23, 15.x before 15.18, 16.x before 16.14, 17.x before 17.10, and 18.x before 18.4. While CVSS 5.4 is moderate, the attack requires authenticated database access and carries real risk in multi-tenant or shared PostgreSQL environments where privilege escalation or lateral movement is the goal.

RemediationAI

Upgrade PostgreSQL immediately to version 14.23, 15.18, 16.14, 17.10, or 18.4 or later depending on your current major version. No workaround patches are available for earlier versions. As an interim mitigation, restrict CREATE TYPE and CREATE SCHEMA permissions to trusted database administrators only; use REVOKE CREATE ON SCHEMA public FROM public and similar controls to prevent untrusted users from creating objects in shared schemas that appear early in search_path. Additionally, review search_path settings for all database users and applications - consider setting explicit schema prefixes in queries (e.g., public.type_name instead of relying on search_path resolution) to bypass the vulnerability, though this requires application code changes and does not address the root authorization gap. Monitor CREATE TYPE statements in database audit logs (if enabled with log_ddl or similar) to detect suspicious type creation. Note that these mitigations do not fully eliminate risk; patching is the only reliable fix.

Affected VersionsENISA

PostgreSQL 15 <15.18
PostgreSQL 16 <16.14
PostgreSQL 18 <18.4
PostgreSQL 0 <14.23
PostgreSQL 17 <17.10

Affected Packages

euvd postgresql fix: 14.23, 15.18, 16.14, 17.10, 18.4

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 search_path parameter determines the order of schemas searched when resolving unqualified object names (tables, functions, types, operators). The vulnerability stems from insufficient authorization checks in the CREATE TYPE command (CWE-862: Missing Authorization). When a user creates a custom type with the same name as an extension-defined or system type in a schema earlier in the search_path, subsequent qualified lookups may resolve to the attacker's malicious type instead. This is particularly dangerous for extension-defined types because extensions are often trusted to provide critical functionality; an attacker can shadow these with improperly validated UDF wrappers. The affected CPE indicates all PostgreSQL versions up to the specified thresholds are vulnerable. The search_path mechanism is fundamental to PostgreSQL's namespace resolution and is enabled by default, making this a design-level authorization gap rather than a configuration issue.

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
SUSE MEDIUM
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
May 14, 2026 - 15:01 EUVD
CVE Published
May 14, 2026 - 13:00 nvd
MEDIUM 5.4

DescriptionCVE.org

Missing authorization in PostgreSQL CREATE TYPE allows an object creator to hijack other queries that use search_path to find user-defined types, including extension-defined types. That is to say, the victim will execute arbitrary SQL functions of the attacker's choice. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
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

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise Module for Basesystem 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Fixed

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