CVE-2026-134848

pgjdbc lets a NUL character in a connection property add startup parameters

Published Nov 23, 2026 CVSS 3.1 · 7.4 High EPSS n/a KEV · Not listed
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.

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 available
History
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.

Weaknesses

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Nov 23, 2026, 4:59 PM
Reserved
Nov 22, 2026, 5:13 PM
Status
Received
Published
Nov 23, 2026, 5:17 PM
Modified
Nov 23, 2026, 5:17 PM