UBUNTU-CVE-2026-107313 (CVE-2026-107313)
Vulnerability from osv_ubuntu – Published: 2026-10-08 00:00 – Updated: 2026-10-08 00:00 – 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.
{
"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-10-08T00:00:00Z",
"published": "2026-10-08T00:00: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.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-107313"
]
}
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.
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.