Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pgjdbc | pgjdbc | 42.2.15 – < 42.7.15 | 42.7.15 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libpgjava | No fix yet | — |
| Debian 13 | libpgjava | No fix yet | — |
| Debian 12 | libpgjava | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libpgjava | No fix yet | — |
| Ubuntu 26.04 LTS | libpgjava | No fix yet | — |
| Ubuntu 24.04 LTS | libpgjava | No fix yet | — |
| Ubuntu 22.04 LTS | libpgjava | No fix yet | — |
| Ubuntu 16.04 LTS | libpgjava | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | libpgjava | No fix yet | — |
| Ubuntu Pro 20.04 LTS | libpgjava | No fix yet | — |
| Ubuntu Pro 18.04 LTS | libpgjava | No fix yet | — |
Advisories 1
- WID-SEC-2026-4746 PostgreSQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 23, 2026