Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged database user
-
DeliveryLocate access-restricted cast function
-
ExploitInvoke it via foreign key or to_json()
-
ExecutionExecute cast bypassing EXECUTE check
-
ImpactRead function-specific confidential data
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 | Requires an authenticated PostgreSQL database user (PR:L) - not remote unauthenticated. The attacker must (1) identify a cast function in a target database that is access-restricted (user lacks EXECUTE), and (2) that cast function must have a confidentiality impact specific to its implementation; PostgreSQL states there are few or no practical examples of either. The missing-authorization check is reachable through type-conversion paths such as foreign key enforcement and to_json(). Limiting factors: valid database credentials are required, the attack only matters if such a restricted-and-sensitive cast function actually exists (non-default, effectively rare), and the impact is confined to confidentiality with no integrity or availability effect. The complete fix is updating to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25. |
| Impact | All signals converge on low real-world risk. The CVSS 3.1 base score is 3.1 (Low) with vector AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N: network-reachable but requiring an authenticated low-privileged database user (PR:L), high attack complexity (AC:H), and only limited confidentiality impact (C:L) with no integrity or availability effect. The vuln.today decision label is 'monitor', the weakest urgency tier, consistent with the low score. There is no CISA KEV listing and no public exploit reference in the input, so this is not confirmed exploited and no public exploit identified at time of analysis. No EPSS value was supplied, so exploitation probability cannot be quantified from this data. The AC:H rating is explained directly by the description: an attacker must search each database for an access-restricted cast function AND that function must happen to carry function-specific confidentiality impact, and PostgreSQL itself notes there are few or no practical examples of either condition. This is a genuine low-priority, defense-in-depth fix rather than an actionable threat - a high-rigor authorization-correctness issue whose practical exploitability is near-theoretical. Missing data: no EPSS, no SSVC vector, and no PoC reference were provided. |
| Exploit ScenarioDerived | An authenticated low-privileged PostgreSQL user triggers a type conversion - for example through a foreign key check or a to_json() call - that invokes a cast function they do not hold EXECUTE privilege on, bypassing the authorization check. To gain anything, the user must first locate a cast function in the database that is both access-restricted and carries confidentiality impact. No public exploit was identified at time of analysis, and PostgreSQL notes such a qualifying cast function is rare to nonexistent in practice. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25 fail to enforce EXECUTE privilege on cast functions invoked through implicit type-conversion paths such as foreign key enforcement and to_json(), allowing an authenticated database user to run access-restricted cast functions. Real-world impact is limited: PostgreSQL notes there are few or no practical examples of either a restricted cast function or a cast function whose implementation leaks confidential data, and the attacker must first survey each database to find such a function. No public exploit code or confirmed active exploitation was identified at time of analysis, and the assessed vector is confidentiality-only with high attack complexity (CVSS 3.1).
RemediationAI
Apply the vendor-released patch by upgrading to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25 as appropriate for your branch; these are the versions that close the missing authorization check on implicit cast function invocation. Deployments that cannot upgrade immediately can reduce exposure by reviewing databases for cast functions that are access-restricted and auditing whether any of them have confidentiality-relevant behavior, since the vulnerability is only exploitable when such a function exists, and by restricting database credentials and role grants so that untrusted users cannot explore schemas they do not need. Consult the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-116303/ for the authoritative fix details.
Affected VersionsENISA
Affected Packages
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
The flaw is a missing authorization check (CWE-862) in PostgreSQL's type-conversion machinery. Casts in PostgreSQL can be implemented by functions, and a database user normally needs EXECUTE privilege on such a function to call it directly; however, when a cast is triggered implicitly by the server - for example while validating or enforcing a foreign key, or when to_json() serializes a composite value - the executor invokes the underlying cast function without verifying the invoking user's EXECUTE privilege. The attack path therefore requires an authenticated session (PR:L) and, per the vendor, a non-default configuration containing an access-restricted cast function whose implementation itself has a confidentiality impact; PostgreSQL states such examples are rare to nonexistent in practice, which is why the assessed complexity is high (AC:H) and impact is limited to low confidentiality with no integrity or availability effect. The affected component is identified only by the generic CPE cpe:2.3:a:n/a:postgresql, so version, not deployment platform, is the discriminator.
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
AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Network-reachable SQL path but needs an authenticated user (PR:L) and depends on a rare restricted-and-sensitive cast function (AC:H); impact is limited confidentiality only, so I:N/A:N.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.org
Missing authorization in PostgreSQL type conversion allows a database user to invoke a cast function despite lacking EXECUTE privilege on that function, via foreign keys, to_json(), and others. A successful attack requires the attacker to search each database for access-restricted cast functions and identify confidentiality impact specific to each function implementation found. There are few or no practical examples of an access-restricted cast function or of a cast function having confidentiality impact. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
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
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
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
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-124484
GHSA-5xwq-5r59-wqjw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB