SB2026112369 - Multiple vulnerabilities in Postgresql JDBC Driver



SB2026112369 - Multiple vulnerabilities in Postgresql JDBC Driver

Published: November 23, 2026

Security Bulletin ID SB2026112369
CSH Severity
High
Patch available
YES
Number of vulnerabilities 14
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

High 14% Medium 36% Low 50%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 14 vulnerabilities.


1) Resource exhaustion (CVE-ID: N/A)

CWE-ID: CWE-400 - Resource exhaustion

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to reduce application availability by consuming excessive CPU time or heap memory.

The vulnerability exists due to uncontrolled resource consumption in the PostgreSQL JDBC driver when handling copy cancellation, parsing server version strings or text arrays, or recording server warnings. A remote attacker can send crafted responses from a malicious server or tamper with responses in transit when the server's identity is not verified to slow down or disrupt the application.


2) Insufficient verification of data authenticity (CVE-ID: N/A)

CWE-ID: CWE-345 - Insufficient Verification of Data Authenticity

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause the driver to disclose its PostgreSQL startup packet and potentially the database password to an unintended TLS service.

The vulnerability exists due to missing verification of the server's ALPN selection in pgjdbc when establishing a direct TLS connection with sslNegotiation=direct. A remote attacker can redirect the connection to another TLS service on the same host whose certificate is accepted under the configured sslmode to cause the driver to send PostgreSQL data to that service.


3) Improper Encoding or Escaping of Output (CVE-ID: N/A)

CWE-ID: CWE-116 - Improper Encoding or Escaping of Output

CVSSv4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote privileged user to override DataSource connection settings, potentially disabling TLS certificate validation or selecting a different socket factory.

The vulnerability exists due to improper escaping in BaseDataSource.getUrl() when incorporating a configured server name into a JDBC URL. A remote privileged user can supply a specially crafted server name to introduce URL properties that take precedence over existing DataSource settings.


4) XML External Entity injection (CVE-ID: N/A)

CWE-ID: CWE-611 - Improper Restriction of XML External Entity Reference ('XXE')

CVSSv4: 2.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to make the application send requests to a URL of their choice.

The vulnerability exists due to improper restriction of XML external entity references in pgjdbc's default XML factory, which leaves its SAXSource XMLReader without an entity resolver when parsing with a SAX driver that ignores the configured restrictions. A remote user can store XML that references an external DTD to trigger an outbound request when the application parses the value through SAXSource.


5) Inefficient Algorithmic Complexity (CVE-ID: N/A)

CWE-ID: CWE-407 - Inefficient Algorithmic Complexity

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through excessive CPU consumption that can slow all connections in the same JVM.

The vulnerability exists due to inefficient algorithmic complexity in the driver's JVM-wide interner, which searches entries one by one when column labels or notification channel names have colliding hashes. A remote attacker can supply colliding column labels from a malicious server or by tampering with responses from an unverified server to degrade application availability.


6) Resource exhaustion (CVE-ID: N/A)

CWE-ID: CWE-400 - Resource exhaustion

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to degrade client availability by causing excessive CPU consumption during a single connection attempt.

The vulnerability exists due to uncontrolled resource consumption in pgjdbc's SCRAM authentication handler when repeated SASL authentication requests trigger new password derivations that are limited individually but not in aggregate. A remote attacker can trigger repeated SCRAM exchanges from a malicious server or by impersonating a server whose identity the client does not verify to consume excessive client CPU.


7) Improper Neutralization of Null Byte or NUL Character (CVE-ID: CVE-2026-134848)

CWE-ID: CWE-158 - Improper Neutralization of Null Byte or NUL Character

CVSSv4: 9.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to override PostgreSQL connection settings and potentially gain unauthorized database access or elevated privileges.

The vulnerability exists due to improper neutralization of NUL characters in the PostgreSQL JDBC driver's startup message serializer when encoding connection settings as NUL-terminated fields. A remote attacker can supply crafted connection settings through application inputs or JDBC URLs to override startup parameters, but access under a different role still depends on server authentication.


8) Numeric Truncation Error (CVE-ID: CVE-2026-134847)

CWE-ID: CWE-197 - Numeric Truncation Error

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to alter stored numeric values or cause a denial of service through excessive CPU use.

The vulnerability exists due to unchecked numeric truncation and unbounded scale calculations in pgjdbc's binary numeric encoder when it encodes BigDecimal parameters. A remote attacker can supply decimal inputs that the application parses and binds as BigDecimal values to cause PostgreSQL to store a different number or tie up a driver thread.


9) Authentication Bypass by Capture-replay (CVE-ID: CVE-2026-134846)

CWE-ID: CWE-294 - Authentication Bypass by Capture-replay

CVSSv4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to compromise the integrity of query results and, under certain conditions, expose SQL statements and parameters on the network.

The vulnerability exists due to unchecked replay and sequencing flags and shared inbound and outbound privacy state in the PostgreSQL JDBC driver's GSS encryption layer when processing server packets. A remote attacker can exploit replay acceptance to make the driver accept a stale query reply, while a party holding the session key can cause subsequent client traffic to be signed but not encrypted.


10) Not Failing Securely ('Failing Open') (CVE-ID: CVE-2026-134845)

CWE-ID: CWE-636 - Not Failing Securely (\'Failing Open\')

CVSSv4: 9.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to read and modify database traffic, including intercepting passwords with some authentication methods.

The vulnerability exists due to a failure to enforce the requested TLS policy in pgjdbc connection configuration when the driver misinterprets SSL settings, ignores service properties, or retains earlier security settings after a DataSource URL update. A remote attacker can intercept an affected connection from the network path to read or alter traffic that lacks encryption or server certificate verification.


11) Insecure DLL loading (CVE-ID: CVE-2026-134844)

CWE-ID: CWE-427 - Uncontrolled Search Path Element

CVSSv4: 7.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to execute SQL with the privileges of the application's database role.

The vulnerability exists due to uncontrolled search path resolution in pgjdbc catalog queries when the driver resolves unqualified operator, function, or type names. A remote user can supply database objects that the driver resolves in place of the intended objects during metadata lookups or parameter type resolution to execute SQL in the application's database session.


12) Improper handling of exceptional conditions (CVE-ID: CVE-2026-134843)

CWE-ID: CWE-755 - Improper Handling of Exceptional Conditions

CVSSv4: 7.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to execute arbitrary SQL as the application's database role.

The vulnerability exists due to improper handling of unchecked exceptions in pgjdbc's Bind message writer, which leaves the connection open with a partially written message when stream processing or statement re-execution interrupts a write. A remote user can supply an uploaded value that the server misinterprets as SQL on the desynchronized connection to execute commands as the application's database role.


13) SQL injection (CVE-ID: CVE-2026-134842)

CWE-ID: CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

CVSSv4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to execute arbitrary SQL with the privileges of the application's database role.

The vulnerability exists due to improper SQL literal handling in pgjdbc when simple query mode quotes parameters or reuses cached parses under a mismatched standard_conforming_strings setting, or when character encoding changes how the server interprets escaping in simple query mode or PGConnection.escapeLiteral. A remote attacker can supply a crafted string value that the server interprets as SQL rather than data to execute arbitrary SQL with the application's database privileges.


14) SQL injection (CVE-ID: CVE-2026-134841)

CWE-ID: CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

CVSSv4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to execute arbitrary SQL with the privileges of the application's database role.

The vulnerability exists due to improper separation of quoted text from SQL syntax in the pgjdbc query parser when processing JDBC escapes, dollar-quoted text, or escape string literals, or rewriting certain JDBC functions. A remote attacker can supply a value that the application quotes in an affected query to have the database execute it as SQL.


Remediation

Install update from vendor's website.