Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl attacker-influenced JDBC connection parameter
-
ExploitInject NUL via %00 or raw NUL byte
-
ExecutionAppend overriding user/database/replication parameter
-
ImpactAuthenticate as unintended role on trusting server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Metacharacter neutralization
|
| Exploitation Conditions | Exploitation requires the attacker to control part of a pgjdbc JDBC connection string or a connection property - specifically the database name, user, currentSchema, options, or ApplicationName - into which an embedded NUL (raw \0 or URL-encoded %00) can be injected to append additional NUL-terminated StartupMessage parameters that override the intended user, database, or replication setting. The vulnerability does NOT bypass PostgreSQL authentication, so the practical outcome is strictly limited by the server's HBA configuration: logging in as an arbitrary role succeeds only where the server uses 'trust' authentication (no password), or under scram-sha-256 only when the injected role shares the same password as the configured role; md5 authentication defeats the injection because pgjdbc computes the MD5 response from the originally configured username. Affected: all pgjdbc versions up to and including 42.7.14; fixed in 42.7.15. The gating server-side auth dependency is what makes this AC:H rather than a trivial unauthenticated takeover. |
| Impact | This is a genuine but conditional risk rather than a drop-everything emergency, and the vuln.today priority of 'this_week' aligns with that. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N, 7.4 High) correctly captures the key tension: no authentication to the driver is required (PR:N) and no user interaction (UI:N), but AC:H reflects that successful exploitation is gated by the PostgreSQL server's authentication configuration - not by the flaw itself. The advisory is explicit that authentication is NOT bypassed: against 'trust' auth an attacker can log in as any role; against scram-sha-256 only if the injected role shares the configured role's password; against md5 it fails because the username is baked into the MD5 response. No EPSS score and no KEV status were supplied in the input, so there is no signal of active exploitation - treat this as no public exploit identified as actively used. A conceptual proof-of-concept IS published in the GHSA advisory, but it is an illustrative example, not verified working exploit code. Signals are therefore consistent, not conflicting: moderate-high severity, real-world exploitability tightly bounded by server-side auth configuration (especially the presence of 'trust' HBA entries). Missing data to note: no EPSS, no KEV, and the input CVSS cites CWE-158 while the GHSA advisory lists both CWE-20 and CWE-158. |
| Exploit ScenarioDerived | An application constructs a pgjdbc connection using an attacker-influenced value such as currentSchema, user, database, options, or ApplicationName. The attacker supplies a value like 'public\0user\0postgres' (or URL-encoded %00) to append a second 'user' parameter to the StartupMessage, and because PostgreSQL honors the last occurrence of a duplicate parameter, the connection attempts to authenticate as postgres instead of the intended role; on a server configured with 'trust' authentication this succeeds without a password. A conceptual PoC is published in the GHSA advisory but is not verified as working exploit code, and the CVSS AC:H reflects that success depends entirely on the server's authentication configuration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
Startup parameter injection in pgjdbc (PostgreSQL JDBC Driver) through 42.7.14 allows an attacker who controls part of a JDBC URL or connection property to embed NUL characters (%00) and append extra StartupMessage parameters, potentially overriding the login role, database, currentSchema, options, or replication setting. The flaw does not bypass PostgreSQL authentication: successful login as another role depends on server HBA configuration, succeeding with trust authentication or with scram-sha-256 only when the injected role shares the configured role's password, while md5 defeats the injected username. Version 42.7.15 fixes the issue; there is no confirmed active exploitation (not in CISA KEV), but the advisory describes a public proof-of-concept payload.
RemediationAI
Upgrade pgjdbc to 42.7.15, the vendor-released fix, per GHSA-36wf-f6m2-v42m (https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-36wf-f6m2-v42m). Where upgrading is not immediately possible, do not accept untrusted input in JDBC connection parameters and reject raw NUL bytes and %00 sequences in the database name, user, currentSchema, options, and ApplicationName before building the connection; also avoid trust authentication for roles reachable by applications that assemble connection strings from untrusted input, because trust removes the authentication barrier that otherwise limits this injection. Note that md5 authentication defeats the injected username change, while scram-sha-256 does not if the injected role shares the configured role's password.
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
PostgreSQL's StartupMessage is a sequence of NUL-terminated name/value strings, and the server resolves duplicate parameter names by using the last occurrence. pgjdbc serializes startup parameters such as user, database, currentSchema, options, and ApplicationName without rejecting embedded NUL bytes, so a value containing \0 or URL-decoded %00 can terminate the intended value and introduce additional parameters. This is CWE-158 (improper neutralization of NUL byte) and CWE-20 (improper input validation). The affected Maven package is org.postgresql:postgresql through 42.7.14, fixed in 42.7.15. Exploitation requires attacker influence over a connection string component or connection property, and the resulting login still must satisfy PostgreSQL authentication: trust permits login as an arbitrary role, scram-sha-256 permits it only if the injected role has the same password, and md5 uses the originally configured username in its response and therefore fails when the username is changed.
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:N/UI:N/S:U/C:H/I:H/A:N
Attacker needs only to control a connection parameter (PR:N, AV:N), but success is conditional on the server's auth configuration such as trust/shared-password (AC:H); role takeover yields high C/I, DoS impact is only speculative so A:N.
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, does not refuse a NUL character in a startup parameter. The StartupMessage is a list of NUL-terminated strings, so a NUL in the database name, user, currentSchema, options or ApplicationName adds further parameters. %00 in a URL decodes to a NUL. Someone who controls part of the URL or a property can choose another login role or add replication=database, although the connection still has to pass the authentication of that role. On a server that trusts the client, the attacker can log in as any role. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.
Articles & Coverage 1
Technical POC Analysis
CWE-158 (Improper Neutralization of Null Byte or NUL Character); the advisory also tags CWE-20.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity flaw in the widely used PostgreSQL JDBC Driver (pgjdbc through 42.7.14) lets anyone who can influence a JDBC URL or connection property inject NUL characters to append or override StartupMessage parameters, including login role and database. Applications that build connection strings from user-influenced input are exposed, and under trust or shared-password scram configurations an attacker may authenticate as a different role, undermining data access controls. Leadership should care because this touches database authorization boundaries across any customer-facing or multi-tenant application using pgjdbc without input hardening.
No vendor-released patch identified at time of analysis for affected versions; interim mitigations are strict input validation rejecting NUL characters and unexpected parameters in JDBC URLs and connection properties, plus eliminating trust authentication and shared-password scram roles in PostgreSQL HBA configuration. Upgrade to 42.7.15 when available.
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-133253
NVD
CVE.org
Vulnrichment
GitHub
Exploit-DB