CVE-2026-107315

Source
https://cve.org/CVERecord?id=CVE-2026-107315
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-107315.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-107315
Aliases
  • GHSA-f64h-wr5q-3qf3
Downstream
Published
2026-10-07T23:03:18Z
Modified
2026-10-09T02:49:21Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
pgjdbc pads a value shorter than its declared length with bytes of earlier statements (rather than zeros)
Details

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.

Database specific
{
    "cna_assigner": "PostgreSQL",
    "cwe_ids": [
        "CWE-201",
        "CWE-226"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107315.json"
}
References

Affected packages

Git / github.com/pgjdbc/pgjdbc

Affected ranges

Type
GIT
Repo
https://github.com/pgjdbc/pgjdbc
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "42.7.4"
        },
        {
            "last_affected": "42.7.13"
        },
        {
            "fixed": "42.7.13"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "DESCRIPTION"
    ]
}

Affected versions

REL42.*
REL42.7.10
REL42.7.11
REL42.7.4
REL42.7.4-rc1
REL42.7.5
REL42.7.5-rc1
REL42.7.6
REL42.7.6-rc1
REL42.7.7
REL42.7.7-rc1
REL42.7.8
REL42.7.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-107315.json"