Debian Package Tracker
Register | Log in
Subscribe

libpgjava

Java database (JDBC) driver for PostgreSQL

Choose email to subscribe with

general
  • source: libpgjava (main)
  • version: 42.7.15-1
  • maintainer: Debian Java Maintainers (archive) (DMD)
  • uploaders: Christoph Berg (DMD) – Andrew Ross (DMD) – Matthias Klose (DMD) – Debian PostgreSQL Maintainers (DMD)
  • arch: all
  • std-ver: 4.7.4
  • VCS: Git (Browse, QA)
versions [more versions can be listed by madison] [old versions available from snapshot.debian.org]
[pool directory]
  • o-o-stable: 42.2.15-1+deb11u1
  • o-o-sec: 42.2.15-1+deb11u2
  • oldstable: 42.5.5-0+deb12u1
  • stable: 42.7.7-1
  • testing: 42.7.15-1
  • unstable: 42.7.15-1
versioned links
  • 42.2.15-1+deb11u1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 42.2.15-1+deb11u2: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 42.5.5-0+deb12u1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 42.7.7-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 42.7.15-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
binaries
  • libpostgresql-jdbc-java
action needed
17 security issues in trixie high

There are 17 open security issues in trixie.

15 important issues:
  • CVE-2026-107315: pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.4 through 42.7.13 pads a value that is shorter than its declared length with bytes left in its send buffer instead of zeros, and the server stores those bytes as part of the value. The bytes are messages the driver sent earlier on the same connection: SQL text and parameter values of recent statements, which on a pooled connection can come from other requests. Each padded value can carry up to 8192 bytes of this traffic, or 16320 bytes on a connection with GSS encryption. The padding happens when an application declares a length larger than the data it supplies, through PreparedStatement.setObject with a ByteStreamWriter, CopyIn.writeToCopy, PGCopyOutputStream.write, LargeObject.write, or Blob.setBytes. The driver accepts these calls without an error. An attacker who can make the application store such a value and read it back can collect earlier traffic. Applications whose declared lengths always match their data are not affected. Versions 42.7.3 and earlier pad with zeros.
  • CVE-2026-134841: pgjdbc, the PostgreSQL JDBC Driver, misreads some quoted text in its query parser. A `}` inside a literal ends a JDBC escape such as `{ts}`, and the rest of the literal is translated as SQL. A dollar quote whose tag has a non-ASCII symbol or space is not recognized. An `E''` string with a doubled quote is scanned as a standard string. `{fn right}` and `{fn timestampdiff}` with a negative argument produce a `--` comment. In each case text that the application quoted correctly can run as SQL with the privileges of the application's database role. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134842: pgjdbc, the PostgreSQL JDBC Driver, can quote a string parameter for the wrong value of standard_conforming_strings when preferQueryMode=simple is set. A statement, trigger or configuration reload can turn the setting off during a session. A parameter value with a backslash and a quote then ends the literal, and the rest of the value runs as SQL. Before 42.7.6 any session with the setting off was affected. The statement cache can also reuse a parse made under the other setting. With allowEncodingChanges=true and the EUC_JP or SJIS client encoding, the yen sign acts as a backslash. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134843: pgjdbc, the PostgreSQL JDBC Driver, does not close the connection when an unchecked exception interrupts a request. Part of a Bind message stays in the send buffer, and the server reads the bytes that follow as the rest of it. The bytes of a value uploaded later on the same connection can then run as a SQL command. Since 42.6.0 a setBinaryStream() value without a length that is executed again throws such an exception, as does the driver's own retry after SQLState 0A000 or 26000. An application stream that throws an unchecked exception has the same effect in all versions. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134844: pgjdbc, the PostgreSQL JDBC Driver, uses unqualified operators and functions in the catalog queries of DatabaseMetaData, ResultSetMetaData and TypeInfoCache. A role with CREATE on a schema of the application's search_path can add an operator with an exact type match, and the server runs it with the privileges of the application's role. TypeInfoCache also resolves an unqualified type name such as interval by its own ranking. A domain with that name in another schema, even the temporary schema of another session, can be used instead, and its CHECK runs in the application's session. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134845: pgjdbc, the PostgreSQL JDBC Driver, does not enforce TLS for some settings that ask for it. When sslmode is not set, an ssl value such as 1, on, yes or verify-full gives sslmode=prefer, or no TLS before 42.2.5. A service given in the Properties instead of the URL is ignored, so the sslmode of its pg_service.conf entry is lost. BaseDataSource.setUrl() keeps an sslmode, channelBinding or gssEncMode that was set before it. An attacker on the network path can then read and change the traffic. Versions 9.4.1208 through 42.7.14 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134846: pgjdbc, the PostgreSQL JDBC Driver, does not check the token state that GSSContext.unwrap() reports on a GSS-encrypted connection. An attacker on the network path can replay an earlier server packet from the same connection, and the driver accepts it as the answer to the current query. The driver also shares one MessageProp between reading and writing. One integrity-only packet from the server then makes the driver send later SQL and parameters without encryption. Only connections with gssEncMode=prefer or require that start GSS encryption are affected. Versions 42.2.15 through 42.7.14 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134847: pgjdbc, the PostgreSQL JDBC Driver, cuts the weight and scale of a BigDecimal to 16 bits when it sends the value in binary, which is the default. The server then stores a different number without an error. For example 999999.99e-262144 is stored as 999999.99, so a tiny value can pass a range check and be stored as a large one. The driver also computes 10 to the power of the scale first, so a short value such as 1e-200000000 keeps a thread busy for minutes. Versions 42.3.0 through 42.7.14 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134848: 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.
  • TEMP-0000000-455E15:
  • TEMP-0000000-B5691A:
  • TEMP-0000000-DE4E1C:
  • TEMP-0000000-E10C17:
  • TEMP-0000000-F4BB25:
  • TEMP-0000000-F4FDAB:
2 issues left for the package maintainer to handle:
  • CVE-2026-42198: (needs triaging) pgjdbc is an open source postgresql JDBC Driver. From version 42.2.0 to before version 42.7.11, pgjdbc is vulnerable to a client-side denial of service during SCRAM-SHA-256 authentication. A malicious server can instruct the driver to perform SCRAM authentication with a very large iteration count. With a large enough value, the client spends an unbounded amount of CPU time inside PBKDF2 before authentication can fail. A single attempt ties up a CPU core. Repeated or concurrent attempts exhaust client CPU and can wedge connection pools. In affected versions, loginTimeout did not fully mitigate this problem. When loginTimeout expired, the caller could stop waiting, but the worker thread performing the connection attempt could continue running and burning CPU inside the SCRAM PBKDF2 computation. This issue has been patched in version 42.7.11.
  • CVE-2026-54291: (needs triaging) pgjdbc is an open source postgresql JDBC Driver. In releases 42.7.4 through 42.7.11, channelBinding=require connections can be silently downgraded from SCRAM-SHA-256-PLUS with channel binding to plain SCRAM-SHA-256 without it, losing the man-in-the-middle protection the setting is meant to guarantee. An attacker who can intercept the TLS connection can trigger the downgrade with a certificate whose signature algorithm has no tls-server-end-point channel-binding hash, because the bundled com.ongres.scram:scram-client returns an empty byte array instead of failing and pgJDBC ScramAuthenticator checks only that the server advertised a PLUS mechanism, without rejecting the empty binding or checking that the negotiated mechanism uses channel binding. This issue is fixed in version 42.7.12.

You can find information about how to handle these issues in the security team's documentation.

Created: 2026-04-29 Last update: 2026-11-26 17:30
17 security issues in bookworm high

There are 17 open security issues in bookworm.

15 important issues:
  • CVE-2026-107315: pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.4 through 42.7.13 pads a value that is shorter than its declared length with bytes left in its send buffer instead of zeros, and the server stores those bytes as part of the value. The bytes are messages the driver sent earlier on the same connection: SQL text and parameter values of recent statements, which on a pooled connection can come from other requests. Each padded value can carry up to 8192 bytes of this traffic, or 16320 bytes on a connection with GSS encryption. The padding happens when an application declares a length larger than the data it supplies, through PreparedStatement.setObject with a ByteStreamWriter, CopyIn.writeToCopy, PGCopyOutputStream.write, LargeObject.write, or Blob.setBytes. The driver accepts these calls without an error. An attacker who can make the application store such a value and read it back can collect earlier traffic. Applications whose declared lengths always match their data are not affected. Versions 42.7.3 and earlier pad with zeros.
  • CVE-2026-134841: pgjdbc, the PostgreSQL JDBC Driver, misreads some quoted text in its query parser. A `}` inside a literal ends a JDBC escape such as `{ts}`, and the rest of the literal is translated as SQL. A dollar quote whose tag has a non-ASCII symbol or space is not recognized. An `E''` string with a doubled quote is scanned as a standard string. `{fn right}` and `{fn timestampdiff}` with a negative argument produce a `--` comment. In each case text that the application quoted correctly can run as SQL with the privileges of the application's database role. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134842: pgjdbc, the PostgreSQL JDBC Driver, can quote a string parameter for the wrong value of standard_conforming_strings when preferQueryMode=simple is set. A statement, trigger or configuration reload can turn the setting off during a session. A parameter value with a backslash and a quote then ends the literal, and the rest of the value runs as SQL. Before 42.7.6 any session with the setting off was affected. The statement cache can also reuse a parse made under the other setting. With allowEncodingChanges=true and the EUC_JP or SJIS client encoding, the yen sign acts as a backslash. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134843: pgjdbc, the PostgreSQL JDBC Driver, does not close the connection when an unchecked exception interrupts a request. Part of a Bind message stays in the send buffer, and the server reads the bytes that follow as the rest of it. The bytes of a value uploaded later on the same connection can then run as a SQL command. Since 42.6.0 a setBinaryStream() value without a length that is executed again throws such an exception, as does the driver's own retry after SQLState 0A000 or 26000. An application stream that throws an unchecked exception has the same effect in all versions. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134844: pgjdbc, the PostgreSQL JDBC Driver, uses unqualified operators and functions in the catalog queries of DatabaseMetaData, ResultSetMetaData and TypeInfoCache. A role with CREATE on a schema of the application's search_path can add an operator with an exact type match, and the server runs it with the privileges of the application's role. TypeInfoCache also resolves an unqualified type name such as interval by its own ranking. A domain with that name in another schema, even the temporary schema of another session, can be used instead, and its CHECK runs in the application's session. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134845: pgjdbc, the PostgreSQL JDBC Driver, does not enforce TLS for some settings that ask for it. When sslmode is not set, an ssl value such as 1, on, yes or verify-full gives sslmode=prefer, or no TLS before 42.2.5. A service given in the Properties instead of the URL is ignored, so the sslmode of its pg_service.conf entry is lost. BaseDataSource.setUrl() keeps an sslmode, channelBinding or gssEncMode that was set before it. An attacker on the network path can then read and change the traffic. Versions 9.4.1208 through 42.7.14 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134846: pgjdbc, the PostgreSQL JDBC Driver, does not check the token state that GSSContext.unwrap() reports on a GSS-encrypted connection. An attacker on the network path can replay an earlier server packet from the same connection, and the driver accepts it as the answer to the current query. The driver also shares one MessageProp between reading and writing. One integrity-only packet from the server then makes the driver send later SQL and parameters without encryption. Only connections with gssEncMode=prefer or require that start GSS encryption are affected. Versions 42.2.15 through 42.7.14 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134847: pgjdbc, the PostgreSQL JDBC Driver, cuts the weight and scale of a BigDecimal to 16 bits when it sends the value in binary, which is the default. The server then stores a different number without an error. For example 999999.99e-262144 is stored as 999999.99, so a tiny value can pass a range check and be stored as a large one. The driver also computes 10 to the power of the scale first, so a short value such as 1e-200000000 keeps a thread busy for minutes. Versions 42.3.0 through 42.7.14 are affected, and 42.7.15 fixes the problem.
  • CVE-2026-134848: 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.
  • TEMP-0000000-455E15:
  • TEMP-0000000-B5691A:
  • TEMP-0000000-DE4E1C:
  • TEMP-0000000-E10C17:
  • TEMP-0000000-F4BB25:
  • TEMP-0000000-F4FDAB:
2 issues postponed or untriaged:
  • CVE-2026-42198: (postponed; to be fixed through a stable update) pgjdbc is an open source postgresql JDBC Driver. From version 42.2.0 to before version 42.7.11, pgjdbc is vulnerable to a client-side denial of service during SCRAM-SHA-256 authentication. A malicious server can instruct the driver to perform SCRAM authentication with a very large iteration count. With a large enough value, the client spends an unbounded amount of CPU time inside PBKDF2 before authentication can fail. A single attempt ties up a CPU core. Repeated or concurrent attempts exhaust client CPU and can wedge connection pools. In affected versions, loginTimeout did not fully mitigate this problem. When loginTimeout expired, the caller could stop waiting, but the worker thread performing the connection attempt could continue running and burning CPU inside the SCRAM PBKDF2 computation. This issue has been patched in version 42.7.11.
  • CVE-2026-54291: (postponed; to be fixed through a stable update) pgjdbc is an open source postgresql JDBC Driver. In releases 42.7.4 through 42.7.11, channelBinding=require connections can be silently downgraded from SCRAM-SHA-256-PLUS with channel binding to plain SCRAM-SHA-256 without it, losing the man-in-the-middle protection the setting is meant to guarantee. An attacker who can intercept the TLS connection can trigger the downgrade with a certificate whose signature algorithm has no tls-server-end-point channel-binding hash, because the bundled com.ongres.scram:scram-client returns an empty byte array instead of failing and pgJDBC ScramAuthenticator checks only that the server advertised a PLUS mechanism, without rejecting the empty binding or checking that the negotiated mechanism uses channel binding. This issue is fixed in version 42.7.12.
Created: 2026-10-08 Last update: 2026-11-26 17:30
debian/patches: 1 patch to forward upstream low

Among the 1 debian patch available in version 42.7.15-1 of the package, we noticed the following issues:

  • 1 patch where the metadata indicates that the patch has not yet been forwarded upstream. You should either forward the patch upstream or update the metadata to document its real status.
Created: 2023-02-26 Last update: 2026-11-24 07:00
news
[rss feed]
  • [2026-11-27] libpgjava 42.7.15-1 MIGRATED to testing (Debian testing watch)
  • [2026-11-23] Accepted libpgjava 42.7.15-1 (source) into unstable (Christoph Berg)
  • [2026-10-13] libpgjava 42.7.14-1 MIGRATED to testing (Debian testing watch)
  • [2026-10-09] Accepted libpgjava 42.7.14-1 (source) into unstable (Christoph Berg)
  • [2026-07-09] libpgjava 42.7.13-1 MIGRATED to testing (Debian testing watch)
  • [2026-07-06] Accepted libpgjava 42.7.13-1 (source) into unstable (Christoph Berg)
  • [2026-07-04] libpgjava 42.7.12-1 MIGRATED to testing (Debian testing watch)
  • [2026-06-30] Accepted libpgjava 42.7.12-1 (source) into unstable (Christoph Berg)
  • [2026-05-03] libpgjava 42.7.11-1 MIGRATED to testing (Debian testing watch)
  • [2026-04-29] Accepted libpgjava 42.7.11-1 (source) into unstable (Christoph Berg)
  • [2026-02-19] libpgjava 42.7.10-1 MIGRATED to testing (Debian testing watch)
  • [2026-02-11] Accepted libpgjava 42.7.10-1 (source) into unstable (Christoph Berg)
  • [2026-01-20] libpgjava 42.7.9-1 MIGRATED to testing (Debian testing watch)
  • [2026-01-17] Accepted libpgjava 42.7.9-1 (source) into unstable (Christoph Berg)
  • [2025-12-07] libpgjava 42.7.8-2 MIGRATED to testing (Debian testing watch)
  • [2025-12-04] Accepted libpgjava 42.7.8-2 (source) into unstable (tony mancill)
  • [2025-09-30] libpgjava 42.7.8-1 MIGRATED to testing (Debian testing watch)
  • [2025-09-23] Accepted libpgjava 42.7.8-1 (source) into unstable (Christoph Berg)
  • [2025-09-23] Accepted libpgjava 42.7.7-2 (source) into unstable (Christoph Berg)
  • [2025-07-09] libpgjava 42.7.7-1 MIGRATED to testing (Debian testing watch)
  • [2025-06-13] Accepted libpgjava 42.7.7-1 (source) into unstable (Christoph Berg)
  • [2025-06-02] Accepted libpgjava 42.7.6-1 (source) into experimental (Christoph Berg)
  • [2025-04-27] libpgjava 42.7.5-2 MIGRATED to testing (Debian testing watch)
  • [2025-04-17] Accepted libpgjava 42.7.5-2 (source) into unstable (Christoph Berg)
  • [2025-02-15] libpgjava 42.7.5-1 MIGRATED to testing (Debian testing watch)
  • [2025-02-10] Accepted libpgjava 42.7.5-1 (source) into unstable (Emmanuel Bourg)
  • [2024-12-21] Accepted libpgjava 42.5.5-0+deb12u1 (source) into proposed-updates (Debian FTP Masters) (signed by: Adrian Bunk)
  • [2024-12-16] Accepted libpgjava 42.2.15-1+deb11u2 (source) into oldstable-security (Adrian Bunk)
  • [2024-12-11] libpgjava 42.7.3-2 MIGRATED to testing (Debian testing watch)
  • [2024-12-09] Accepted libpgjava 42.7.3-2 (source) into unstable (Emmanuel Bourg)
  • 1
  • 2
bugs [bug history graph]
  • all: 0
links
  • homepage
  • lintian
  • buildd: logs, reproducibility
  • popcon
  • browse source code
  • other distros
  • security tracker
  • l10n (-, 48)
  • debian patches
  • debci
ubuntu Ubuntu logo [Information about Ubuntu for Debian Developers]
  • version: 42.7.14-1

Debian Package Tracker — Copyright 2013-2025 The Distro Tracker Developers
Report problems to the tracker.debian.org pseudo-package in the Debian BTS.
Documentation — Bugs — Git Repository — Contributing