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
No data.
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.
References
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
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: PostgreSQL
Published:
Updated: 2026-11-23T16:59:18.939Z
Reserved: 2026-11-22T17:13:47.180Z
Link: CVE-2026-134848
No data.
Status : Received
Published: 2026-11-23T17:17:49.997
Modified: 2026-11-23T17:17:49.997
Link: CVE-2026-134848
No data.
OpenCVE Enrichment
No data.
Weaknesses