Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-107313— pgjdbc stores bytes of earlier messages in place of a large value on GSS-encrypted connections

Quick assessment

Affected
pgjdbc pgjdbc
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

pgjdbc(PostgreSQL JDBC 驱动程序)版本 42.7.4 和 42.7.5 存在以下安全问题: 在使用 GSS 加密的连接上(当配置 gssEncMode 为 “prefer” 或 “require” 时),驱动程序可能会将 GSS 发送缓冲区中先前缓存的内容,错误地替换为值的前半部分,而服务器在接受该值时未报错。在 MIT Kerberos 环境下,该缓冲区大小为 16320 字节。因此,存储的值可能包含驱动程序在此之前在同一连接上发送的消息中的字节,例如 SQL 语句文本、其他参数以及同一批量

CVSS 4.2 · Medium

Possible ATT&CK Techniques 1 AI

T1005 · Data from Local System

Affected Version Matrix 1

VendorProduct Version RangeStatus
pgjdbc pgjdbc 42.7.4< 42.7.6 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-107313

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
pgjdbc stores bytes of earlier messages in place of a large value on GSS-encrypted connections
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
通过发送数据的信息暴露
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
pgjdbc pgjdbc 42.7.4 ~ 42.7.6 -

II. Public POCs for CVE-2026-107313

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-107313

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-107313 (2)

Vendor Advisories for CVE-2026-107313 (1)

Same Patch Batch · pgjdbc · 2026-10-07 · 3 CVEs total

CVE-2026-107314 5.9 MEDIUM pgjdbc does not enforce requireAuth when the value excludes every authentication method
CVE-2026-107315 5.3 MEDIUM pgjdbc pads a value shorter than its declared length with bytes of earlier statements (rat

IV. Related Vulnerabilities

V. Comments for CVE-2026-107313

No comments yet


Leave a comment