{"api_version":"1","generated_at":"2026-11-23T18:16:33+00:00","cve":"CVE-2026-134848","urls":{"html":"https://cve.report/CVE-2026-134848","api":"https://cve.report/api/cve/CVE-2026-134848.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-134848","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-134848"},"summary":{"title":"pgjdbc lets a NUL character in a connection property add startup parameters","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.","state":"PUBLISHED","assigner":"PostgreSQL","published_at":"2026-11-23 17:17:49","updated_at":"2026-11-23 17:17:49"},"problem_types":["CWE-158","CWE-158 CWE-158 Improper Neutralization of Null Byte or NUL Character"],"metrics":[{"version":"3.1","source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","type":"Secondary","score":"7.4","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","baseScore":7.4,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.4","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","data":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"references":[{"url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-36wf-f6m2-v42m","name":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-36wf-f6m2-v42m","refsource":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-134848","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-134848","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"pgjdbc","product":"pgjdbc","version":"affected 42.7.15 maven","platforms":[]}],"timeline":[{"source":"CNA","time":"2026-10-08T00:00:00.000Z","lang":"en","value":"Reported by Sehrope Sarkuni."}],"solutions":[{"source":"CNA","title":"","value":"Upgrade to pgjdbc 42.7.15 or later.","time":"","lang":"en"}],"workarounds":[{"source":"CNA","title":"","value":"Refuse a NUL character in connection values that come from untrusted input.","time":"","lang":"en"}],"exploits":[],"credits":[{"source":"CNA","value":"Sehrope Sarkuni","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.maven.apache.org/maven2","defaultStatus":"unaffected","packageName":"org.postgresql:postgresql","product":"pgjdbc","programFiles":["pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java"],"programRoutines":[{"name":"org.postgresql.core.v3.ConnectionFactoryImpl.getParametersForStartup"}],"repo":"https://github.com/pgjdbc/pgjdbc","vendor":"pgjdbc","versions":[{"lessThan":"42.7.15","status":"affected","version":"0","versionType":"maven"}]}],"credits":[{"lang":"en","type":"finder","value":"Sehrope Sarkuni"}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-158","description":"CWE-158 Improper Neutralization of Null Byte or NUL Character","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-23T16:59:18.939Z","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","shortName":"PostgreSQL"},"references":[{"tags":["vendor-advisory"],"url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-36wf-f6m2-v42m"}],"solutions":[{"lang":"en","value":"Upgrade to pgjdbc 42.7.15 or later."}],"timeline":[{"lang":"en","time":"2026-10-08T00:00:00.000Z","value":"Reported by Sehrope Sarkuni."}],"title":"pgjdbc lets a NUL character in a connection property add startup parameters","workarounds":[{"lang":"en","value":"Refuse a NUL character in connection values that come from untrusted input."}]}},"cveMetadata":{"assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","assignerShortName":"PostgreSQL","cveId":"CVE-2026-134848","datePublished":"2026-11-23T16:59:18.939Z","dateReserved":"2026-11-22T17:13:47.180Z","dateUpdated":"2026-11-23T16:59:18.939Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-23 17:17:49","lastModifiedDate":"2026-11-23 17:17:49","problem_types":["CWE-158","CWE-158 CWE-158 Improper Neutralization of Null Byte or NUL Character"],"metrics":{"cvssMetricV31":[{"source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","baseScore":7.4,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE"},"exploitabilityScore":2.2,"impactScore":5.2}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"134848","Ordinal":"1","Title":"pgjdbc lets a NUL character in a connection property add startup","CVE":"CVE-2026-134848","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"134848","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"pgjdbc lets a NUL character in a connection property add startup"}]}}}