CVE-2026-107313
CVE-2026-107313 · pgjdbc stores bytes of earlier messages in place of a large value on GSS-encrypted connections
CVSS 4.2 · Medium · EPSS 0.1% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- pgjdbcUpdate to 42.7.6
- libpgjava Debian 13Update to 42.7.7-1
- libpgjava Debian 14Update to 42.7.7-1
- libpgjava Ubuntu 14.04 LTSNo fix published
- and 5 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libpgjava"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.4 and 42.7.5 can send the previous contents of the GSS send buffer in place of the first part of a value on a connection with GSS encryption (gssEncMode=prefer or require), and the server stores the value without an error. The buffer is 16320 bytes with MIT Kerberos. The stored value then holds bytes of the messages the driver sent just before it on the same connection, such as the statement's SQL text, its other parameters, and earlier rows of the same batch, instead of the bytes the application supplied. Values at least as long as the buffer are affected when the driver writes them from a byte array: bind parameters set with setString, setBytes, or a ByteStreamWriter, CopyIn.writeToCopy, and LargeObject.write. Most such writes fail with an ArrayIndexOutOfBoundsException instead. The default, gssEncMode=allow, does not start GSS encryption, and connections without GSS encryption are not affected. Versions 42.7.3 and earlier are not affected, and 42.7.6 fixes the problem.
- Published
- Updated
Stack: system
Affected products and versions
pgjdbc
- Versions
- ≥ 42.7.4, < 42.7.6: Affected (maven)
Update to 42.7.6
libpgjava Debian 13
- Affected ranges
- ECOSYSTEM: < 42.7.7-1
Update to 42.7.7-1
libpgjava Debian 14
- Affected ranges
- ECOSYSTEM: < 42.7.7-1
Update to 42.7.7-1
libpgjava Ubuntu 14.04 LTS
- Versions
- 9.2-1002-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libpgjava Ubuntu 16.04 LTS
- Versions
- 9.2-1002-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libpgjava Ubuntu Pro 18.04 LTS
- Versions
- 9.4.1212-1
- 9.4.1212-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libpgjava Ubuntu Pro 20.04 LTS
- Versions
- 42.2.6-1
- 42.2.8-1
- 42.2.9-1
- 42.2.10-1
- 42.2.10-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libpgjava Ubuntu 22.04 LTS
- Versions
- 42.2.23-1
- 42.2.24-1
- 42.3.1-1
- 42.3.2-1
- 42.3.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libpgjava Ubuntu 24.04 LTS
- Versions
- 42.5.4-1
- 42.6.0-2
- 42.7.0-1
- 42.7.1-1
- 42.7.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published