Libpgjava: 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… (CVE-2026-107313)
Description
A vulnerability in pgjdbc, the PostgreSQL JDBC Driver versions 42.7.4 and 42.7.5, causes the driver to send previous contents of the GSS send buffer instead of the intended data when using GSS encryption modes 'prefer' or 'require'. This results in the server storing unintended bytes from prior messages, such as SQL statements and parameters, in place of the application's supplied values. Versions 42.7.3 and earlier are not affected, and the issue is fixed in version 42.7.6. Connections without GSS encryption or using the default 'allow' mode are not affected.
CVSS v3.1
Score 4.2medium
Affected software
pkg:deb/ubuntu/libpgjava?arch=source&distro=trustypkg:deb/ubuntu/libpgjava?arch=source&distro=xenialpkg:deb/ubuntu/libpgjava?arch=source&distro=esm-apps/bionicpkg:deb/ubuntu/libpgjava?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/libpgjava?arch=source&distro=jammypkg:deb/ubuntu/libpgjava?arch=source&distro=nobleRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-107313) affects pgjdbc versions 42.7.4 and 42.7.5 when GSS encryption is enabled with modes 'prefer' or 'require'. The driver incorrectly sends the previous contents of the GSS send buffer (16320 bytes with MIT Kerberos) instead of the first part of a value during certain write operations involving byte arrays, such as bind parameters set with setString, setBytes, ByteStreamWriter, CopyIn.writeToCopy, and LargeObject.write. This causes the server to store unintended data from earlier messages on the same connection. Most writes of this nature fail with an ArrayIndexOutOfBoundsException, but values at least as long as the buffer are affected. Versions 42.7.3 and earlier do not exhibit this behavior, and the issue is resolved in version 42.7.6. The default GSS encryption mode 'allow' does not trigger GSS encryption and is unaffected.
Potential Impact
The vulnerability can lead to the server storing unintended data from previous messages in place of the intended application data during certain write operations over GSS-encrypted connections. This may cause data integrity issues and potentially expose sensitive information from prior messages within the same connection. The impact is limited to connections using GSS encryption modes 'prefer' or 'require'. There is no indication of denial of service or remote code execution. The CVSS score is 4.2 (medium severity) reflecting low confidentiality and integrity impacts with no availability impact.
Mitigation Recommendations
Upgrade pgjdbc to version 42.7.6 or later, where this issue is fixed. Connections using the default GSS encryption mode 'allow' or without GSS encryption are not affected. No other mitigation is indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-107313
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:14.04:LTS","Ubuntu:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS"]
- Cvss Version
- 3.1
Threat ID: 6ad3f4dd2cdf04f656656ce0
Added to database: 10/17/2026, 22:21:17 UTC
Last enriched: 10/17/2026, 22:34:32 UTC
Last updated: 10/17/2026, 22:34:32 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.