Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege PostgreSQL role
-
DeliveryCreate malicious operator/function or same-named domain in search_path or temp schema
-
ExploitApplication issues pgjdbc metadata query or binds PGInterval
-
ExecutionServer resolves unqualified object to attacker's and runs it
-
ImpactArbitrary SQL executes with application role's privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
|
| Exploitation Conditions | Two distinct prerequisite sets. Operator/function variant: the attacker must be an authenticated database role holding CREATE on a schema that appears on the application's search_path, allowing it to define an exact-type-match operator or function (e.g. for oid/int4 comparisons lacking an exact pg_catalog match). Type-name/domain variant: only the TEMP privilege is required, which every PostgreSQL role has by default, letting the attacker place a same-named type or domain (such as 'interval' for PGInterval) in a temporary or other schema whose CHECK then runs in the application session. In both cases the application must actually call metadata methods (DatabaseMetaData, ResultSetMetaData) or use types such as PGInterval for the malicious object to be resolved and executed. LIMITING FACTORS: exploitation requires a pre-existing authenticated database foothold (not remote-unauthenticated), a non-isolated/shared or multi-tenant database where an untrusted role can create objects, a search_path that includes an attacker-writable schema, and the application triggering the vulnerable driver code paths; it affects pgjdbc <=42.7.14 only and is fully fixed by upgrading to 42.7.15. |
| Impact | Severity signals are genuinely mixed. The CVSS vector (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H) rates this HIGH on impact (C:H/I:H/A:H, reflecting arbitrary SQL executed with the application role's privileges), but its real-world risk is gated by two factors the raw 7.5 obscures: AC:H and PR:L. Exploitation is not remote-unauthenticated - the attacker must ALREADY be an authenticated PostgreSQL role (PR:L) with CREATE on a schema in the application's search_path, or (for the type-name/domain variant) merely TEMP privilege, which every role holds by default. No EPSS score and no SSVC exploitation/automatable data were supplied, and the CVE is NOT in CISA KEV, so there is no evidence of active exploitation; the only priority signal is the vuln.today 'this_week' label. This is therefore a credible privilege-escalation primitive for shared/multi-tenant PostgreSQL deployments and insider/compromised-role scenarios rather than a mass-exploitable internet-facing flaw - treat it as a real but foothold-dependent escalation issue, not a drop-everything emergency. One caveat to verify: the tags label this 'Information Disclosure', but the advisory describes running attacker-supplied SQL as the application role, which is privilege escalation / code-of-choice execution, broader than disclosure alone. |
| Exploit ScenarioDerived | In a shared PostgreSQL instance, a low-privilege tenant role creates a function and an exact-type-match operator (e.g. s.= over oid/int4) in a schema that sits on the application's search_path, or a same-named domain in a temporary schema using only the default TEMP privilege. When the Java application's pgjdbc driver issues a DatabaseMetaData/ResultSetMetaData catalog query or binds a PGInterval parameter, the server resolves the unqualified operator, function or type to the attacker's object and runs it with the application role's privileges. A demonstrative proof-of-concept (SQL plus a getTableName() call) is published in the GHSA advisory; it is not verified as a packaged working exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
The PostgreSQL JDBC Driver (pgjdbc) through 42.7.14 fails to schema-qualify operators, functions, and type names in catalog queries used by DatabaseMetaData, ResultSetMetaData, and TypeInfoCache, so a database role that can create objects in a schema on the application's search_path can execute SQL with the application role's privileges. The type-name variant requires only the default TEMP privilege, letting a same-named domain's CHECK constraint run in the application's session if the application calls metadata methods or uses types such as PGInterval. The vendor advisory includes a proof-of-concept demonstration; no active exploitation or confirmed working exploit code is reported, and upgrading to 42.7.15 is the complete fix.
RemediationAI
Upgrade to pgjdbc 42.7.15 (Maven org.postgresql:postgresql), the first fixed release; the vendor advisory is GHSA-j75g-99q3-vr5c at https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-j75g-99q3-vr5c. The advisory does not document a separate workaround, so upgrading is the complete fix. Based on the documented prerequisites, reduce exposure by ensuring the application role's search_path does not include schemas writable by untrusted roles-prefer search_path set to pg_catalog alone or to a schema untrusted roles cannot CREATE in-and revoke CREATE on public and other search_path schemas from untrusted roles; this may break applications that rely on those schemas for user-created objects. For the type-name variant, revoke TEMP on the database from untrusted roles or isolate untrusted roles in separate databases, accepting that this can break temporary-table usage. Also avoid sharing application roles with untrusted database users. Schedule remediation within this week's cycle.
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
CWE-427 (Uncontrolled Search Path Element) is the root cause: pgjdbc issues catalog queries with unqualified operator, function, and type references, and PostgreSQL resolves those names using the session search_path. Some comparisons, such as oid versus int4, have no exact match in pg_catalog, so a role with CREATE on a schema in the search_path can define an exact-match operator or function that the server then executes as the application's role. TypeInfoCache separately resolves unqualified type names like interval by its own ranking, so a same-named type or domain placed in another schema-including another session's temporary schema-can win; the domain's CHECK constraint then runs in the application's session. The CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H vector reflects a network-reachable database attack that requires an authenticated low-privileged role and specific search_path and application-code conditions, with high confidentiality, integrity, and availability impact once triggered. The application must actually call DatabaseMetaData or ResultSetMetaData methods or use types such as PGInterval for the malicious object to be resolved.
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:H/I:H/A:H
Attacker needs an authenticated DB role (PR:L) and specific search_path/exact-match plus triggering metadata call conditions (AC:H); resulting SQL runs as the application role, yielding full C/I/A impact.
Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).
CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Lifecycle Timeline
2DescriptionCVE.org
pgjdbc, the PostgreSQL JDBC Driver, uses unqualified operators and functions in the catalog queries of DatabaseMetaData, ResultSetMetaData and TypeInfoCache. A role with CREATE on a schema of the application's search_path can add an operator with an exact type match, and the server runs it with the privileges of the application's role. TypeInfoCache also resolves an unqualified type name such as interval by its own ranking. A domain with that name in another schema, even the temporary schema of another session, can be used instead, and its CHECK runs in the application's session. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.
Articles & Coverage 1
Technical POC Analysis
CWE-427 (Uncontrolled Search Path Element).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
The PostgreSQL JDBC Driver (pgjdbc) up to 42.7.14 contains a privilege escalation vulnerability that allows a low-privileged database role to execute SQL with the application's privileges by exploiting unqualified schema references in catalog queries. This impacts any organization using pgjdbc for database connectivity, potentially enabling unauthorized data access or manipulation. Leadership should prioritize remediation due to the high severity and the driver's widespread use in enterprise applications.
Apply vendor patch (upgrade to 42.7.15). If patching is delayed, restrict database role permissions to prevent object creation in schemas on the application's search_path and revoke TEMP privilege from application roles where possible.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-133249
NVD
CVE.org
Vulnrichment
GitHub
Exploit-DB