# CVE-2026-107315: pgjdbc pads a value shorter than its declared length with bytes of earlier statements (rather than zeros)

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-07 · Modified: 2026-10-08
- Aliases: UBUNTU-CVE-2026-107315, DEBIAN-CVE-2026-107315, CGA-qpcr-r36v-jf3v
- Record: https://cvemate.com/vulnerability/CVE-2026-107315 · JSON: https://cvemate.com/vulnerability/CVE-2026-107315/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.203%, percentile 10.832%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard flyway-fips (Chainguard): \< 13.13.0-r1
- debian libpgjava (Debian): All versions (No fix recorded) \| \< 42.7.14-1
- ubuntu libpgjava (Ubuntu): All versions (No fix recorded)
- pgjdbc pgjdbc: ≥ 42.7.4, ≤ 42.7.13

## References

- <https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-f64h-wr5q-3qf3>
- <https://ubuntu.com/security/CVE-2026-107315>
- <https://www.cve.org/CVERecord?id=CVE-2026-107315>
- <https://github.com/pgjdbc/pgjdbc/commit/c8998c8e9632a7cdecb128dd7cd122d330b3598a>
- <https://security-tracker.debian.org/tracker/CVE-2026-107315>

---

Data as of 2026-12-05T14:04:29.325Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
