CVE catalog

CVE-2026-107315

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 tho

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.20% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibpgjavasid42.7.14-1fixed
Debianlibpgjavaforky42.7.14-1fixed
Debianlibpgjavatrixie42.7.7-1vulnerable
Debianlibpgjavabookworm42.5.5-0+deb12u1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibpgjavasourcesid42.7.14-1not yet assignedNot reported[1150330]
Debianlibpgjavasourceforky42.7.14-1not yet assignedNot reported[1150330]
Debianlibpgjavasourcetrixie(unfixed)not yet assignedNot reported[1150330]
Debianlibpgjavasourcebookworm(unfixed)not yet assignedNot reported[1150330]

[Debian bug #1150330]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [libpgjava]

    Details (2)
    • 42.5.5-0+deb12u1 · all · bookworm

      Affected

      nvd · libpgjava · debian · bookworm; nvd · libpgjava · debian · 12

    • 42.5.5-0+deb12u1 · all · bookworm

      Affected

      nvd · libpgjava · debian · bookworm; nvd · libpgjava · debian · 12

  • Source package: [libpgjava]

    Details (2)
    • 42.5.5-0+deb12u1 · all · bookworm

      Affected

      nvd · libpgjava · debian · bookworm; nvd · libpgjava · debian · 12

    • 42.5.5-0+deb12u1 · all · bookworm

      Affected

      nvd · libpgjava · debian · bookworm; nvd · libpgjava · debian · 12

[Debian 13 (Trixie)]

  • Source package: [libpgjava]

    Details (2)
    • 42.7.7-1 · all · trixie

      Affected

      nvd · libpgjava · debian · 13

    • 42.7.7-1 · all · trixie

      Affected

      nvd · libpgjava · debian · 13

Observed:

References