Description
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.
Published: 2026-11-23
Score: 7.4 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

Vendor Solution

Upgrade to pgjdbc 42.7.15 or later.


Vendor Workaround

Refuse a NUL character in connection values that come from untrusted input.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 23 Nov 2026 17:15:00 +0000

Type Values Removed Values Added
Description 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.
Title pgjdbc lets a NUL character in a connection property add startup parameters
Weaknesses CWE-158
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2026-11-23T16:59:18.939Z

Reserved: 2026-11-22T17:13:47.180Z

Link: CVE-2026-134848

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-23T17:17:49.997

Modified: 2026-11-23T17:17:49.997

Link: CVE-2026-134848

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses
  • CWE-158

    Improper Neutralization of Null Byte or NUL Character