UBUNTU-CVE-2026-107313 (CVE-2026-107313)
Vulnerability from osv_ubuntu – Published: 2026-10-07 19:17 – Updated: 2026-11-24 10:51 – Source websitepgjdbc, 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.
| Ecosystem | Package | Version |
|---|---|---|
| Ubuntu:14.04:LTS |
libpgjava
pkg:deb/ubuntu/libpgjava@9.2-1002-1?arch=source&distro=trusty
|
Affected: All versions (ecosystem)
9.2-1002-1
|
| Ubuntu:16.04:LTS |
libpgjava
pkg:deb/ubuntu/libpgjava@9.2-1002-1?arch=source&distro=xenial
|
Affected: All versions (ecosystem)
9.2-1002-1
|
| Ubuntu:Pro:18.04:LTS |
libpgjava
pkg:deb/ubuntu/libpgjava@9.4.1212-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic
|
Affected: All versions (ecosystem)
9.4.1212-19.4.1212-1ubuntu0.1~esm1
|
| Ubuntu:Pro:20.04:LTS |
libpgjava
pkg:deb/ubuntu/libpgjava@42.2.10-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal
|
Affected: All versions (ecosystem)
42.2.6-142.2.8-142.2.9-142.2.10-142.2.10-1ubuntu0.1~esm1
|
| Ubuntu:22.04:LTS |
libpgjava
pkg:deb/ubuntu/libpgjava@42.3.3-1?arch=source&distro=jammy
|
Affected: All versions (ecosystem)
42.2.23-142.2.24-142.3.1-142.3.2-142.3.3-1
|
| Ubuntu:24.04:LTS |
libpgjava
pkg:deb/ubuntu/libpgjava@42.7.2-1?arch=source&distro=noble
|
Affected: All versions (ecosystem)
42.5.4-142.6.0-242.7.0-142.7.1-142.7.2-1
|
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpg-java",
"binary_version": "9.2-1002-1"
},
{
"binary_name": "libpostgresql-jdbc-java",
"binary_version": "9.2-1002-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "libpgjava",
"purl": "pkg:deb/ubuntu/libpgjava@9.2-1002-1?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.2-1002-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpg-java",
"binary_version": "9.2-1002-1"
},
{
"binary_name": "libpostgresql-jdbc-java",
"binary_version": "9.2-1002-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "libpgjava",
"purl": "pkg:deb/ubuntu/libpgjava@9.2-1002-1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.2-1002-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpostgresql-jdbc-java",
"binary_version": "9.4.1212-1ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "libpgjava",
"purl": "pkg:deb/ubuntu/libpgjava@9.4.1212-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.4.1212-1",
"9.4.1212-1ubuntu0.1~esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpostgresql-jdbc-java",
"binary_version": "42.2.10-1ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "libpgjava",
"purl": "pkg:deb/ubuntu/libpgjava@42.2.10-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"42.2.6-1",
"42.2.8-1",
"42.2.9-1",
"42.2.10-1",
"42.2.10-1ubuntu0.1~esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpostgresql-jdbc-java",
"binary_version": "42.3.3-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "libpgjava",
"purl": "pkg:deb/ubuntu/libpgjava@42.3.3-1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"42.2.23-1",
"42.2.24-1",
"42.3.1-1",
"42.3.2-1",
"42.3.3-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpostgresql-jdbc-java",
"binary_version": "42.7.2-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "libpgjava",
"purl": "pkg:deb/ubuntu/libpgjava@42.7.2-1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"42.5.4-1",
"42.6.0-2",
"42.7.0-1",
"42.7.1-1",
"42.7.2-1"
]
}
],
"aliases": [],
"details": "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\u0027s 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.",
"id": "UBUNTU-CVE-2026-107313",
"modified": "2026-11-24T10:51:09Z",
"published": "2026-10-07T19:17:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-107313"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-107313"
},
{
"type": "REPORT",
"url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-hggc-j2qh-988m"
},
{
"type": "REPORT",
"url": "https://github.com/pgjdbc/pgjdbc/pull/3500"
},
{
"type": "REPORT",
"url": "https://github.com/pgjdbc/pgjdbc/commit/96f6862bb6bcadde7620688c7bce73f2d01a7ebb"
}
],
"related": [],
"schema_version": "1.9.2",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
"source": "CNA",
"type": "CVSS_V3"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-107313"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.