CVE-2026-134848
7.4high
pgjdbc lets a NUL character in a connection property add startup parameters
- Severity
- 7.4high CVSS:3.1 by PostgreSQL
- Exploit likelihood
- 0.66% (higher than 52% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- PostgreSQL
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| org.postgresql:postgresql | before 42.7.15 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-134848 changed 2026-11-23 | CVE Terms of Use |
| NVD | CVE-2026-134848 changed 2026-11-24 | Public domain |