UBUNTU-CVE-2026-107313

Source
https://ubuntu.com/security/CVE-2026-107313
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-107313.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-107313
Upstream
Published
2026-10-08T00:00:00Z
Modified
2026-10-08T19:47:05Z
Severity
  • 4.2 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
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'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.

References

Affected packages

Ubuntu:14.04:LTS
libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava?arch=source&distro=trusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

9.*
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"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-107313.json"
Ubuntu:16.04:LTS
libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

9.*
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"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-107313.json"
Ubuntu:22.04:LTS
libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

42.*
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.3.3-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-107313.json"
Ubuntu:24.04:LTS
libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

42.*
42.5.4-1
42.6.0-2
42.7.0-1
42.7.1-1
42.7.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libpostgresql-jdbc-java",
            "binary_version": "42.7.2-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-107313.json"
Ubuntu:Pro:18.04:LTS
libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava?arch=source&distro=esm-apps%2Fbionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

9.*
9.4.1212-1
9.4.1212-1ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libpostgresql-jdbc-java",
            "binary_version": "9.4.1212-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-107313.json"
Ubuntu:Pro:20.04:LTS
libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

42.*
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.2.10-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-107313.json"