---
id: CVE-2026-134848
title: >-
  pgjdbc, the PostgreSQL JDBC Driver, does not refuse a NUL character in a
  startup parameter
summary: >-
  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 furth…
severity: high
cvss: 7.4
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-158
vendor: pgjdbc
product: 'org.postgresql:postgresql'
affected:
  - 'org.postgresql:postgresql < 42.7.15'
published: '2026-11-23'
updated: '2026-11-24'
sourceUpdated: '2026-11-24T18:56:39.360'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-134848'
references:
  - url: 'https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-36wf-f6m2-v42m'
    label: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-23T19:25:37.627867Z'
ingestedAt: '2026-11-23T20:35:33.369Z'
epss: 0.00383
epssPercentile: 0.32884
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
