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.

Project Subscriptions

Vendors Products
Advisories

No advisories yet.

Fixes

Solution

Upgrade to pgjdbc 42.7.15 or later.


Workaround

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

History

Mon, 23 Nov 2026 19:00:00 +0000

Type Values Removed Values Added
First Time appeared Pgjdbc
Pgjdbc pgjdbc
Vendors & Products Pgjdbc
Pgjdbc pgjdbc

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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2026-11-23T19:26:31.681Z

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

Updated: 2026-11-23T18:45:13Z

Weaknesses