Skip to main content

pgjdbc CVE-2026-134848

| EUVDEUVD-2026-133253 HIGH
Improper Neutralization of Null Byte or NUL Character (CWE-158)
2026-11-23 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
7.4
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
    Control attacker-influenced JDBC connection parameter
  2. Exploit
    Inject NUL via %00 or raw NUL byte
  3. Execution
    Append overriding user/database/replication parameter
  4. Impact
    Authenticate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

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

Alert me

AnalysisAIv1 – 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

pgjdbc 0 <42.7.15

Affected Packages

euvd pgjdbc fix: 42.7.15

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

Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007) PRIMARY 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.4 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

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

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

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

Lifecycle Timeline

2
Patch available
Nov 23, 2026 - 18:02 EUVD
CVE Published
Nov 23, 2026 - 17:17 cve.org
HIGH 7.4

DescriptionCVE.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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

Prevalence
High
the standard PostgreSQL JDBC driver, pervasive in Java/PostgreSQL enterprise stacks
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GitHub

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 N/A
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

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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

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