CVE-2026-134848
pgjdbc lets a NUL character in a connection property add startup parameters
CVSS Score
7.4
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-158 |
| Vendor | pgjdbc |
| Product | pgjdbc |
| Published | Nov 23, 2026 |
| Last Updated | Nov 23, 2026 |
Stay Ahead of the Next One
Get instant alerts for pgjdbc pgjdbc
Be the first to know when new high vulnerabilities affecting pgjdbc pgjdbc are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
Affected Versions
pgjdbc / pgjdbc
0 < 42.7.15
References
Credits
Sehrope Sarkuni