Skip to content
DayZeroHub
High Not yet writtenCVSS 7.4CVE-2026-134848

CVE-2026-134848: pgjdbc lets a NUL character in a connection property add startup parameters

pgjdbc pgjdbc

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-134848: high-severity vulnerability (CVSS 7.4) in pgjdbc pgjdbc.

What happened

Original description from the source: 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.

Why it matters

High severity, CVSS 7.4.

Affected products and versions

pgjdbc pgjdbc < 42.7.15

ProductVersionsFixed in
pgjdbc pgjdbc< 42.7.15—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-158

Relevant change history

  1. Published

    Preliminary advisory published.