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

- Severity: High 7.4 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-11-23T16:59:18.939Z
- Modified: 2026-11-24T18:56:39.360Z
- Weaknesses: CWE-158
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- org.postgresql:postgresql: before 42.7.15

## References

- <https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-36wf-f6m2-v42m> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-134848](https://www.cve.org/CVERecord?id=CVE-2026-134848), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-134848](https://nvd.nist.gov/vuln/detail/CVE-2026-134848), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-134848 · Whole record: https://cve.day/CVE-2026-134848.json · Rebuilt by cve.day 2026-11-25T22:59:52.673Z
