USN-9491-1

Source
https://ubuntu.com/security/notices/USN-9491-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-9491-1
Upstream
CVE (4)
Related
Published
2026-12-03T22:31:02Z
Modified
2026-12-05T10:13:21Z
Summary
libpgjava vulnerabilities
Details

It was discovered that the PostgreSQL JDBC Driver did not properly verify that classes provided through certain connection properties implemented the expected interfaces before instantiating them. An attacker able to control the connection URL or properties could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2022-21724)

It was discovered that the PostgreSQL JDBC Driver did not properly escape column names in the ResultSet.refreshRow() method. An attacker could possibly use this issue to perform SQL injection and execute additional SQL commands. (CVE-2022-31197)

It was discovered that the PostgreSQL JDBC Driver created temporary files with insecure permissions when handling large input streams. A local attacker could possibly use this issue to obtain sensitive information. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-41946)

It was discovered that the PostgreSQL JDBC Driver did not properly handle certain query placeholders when using the simple query mode. An attacker could possibly use this issue to perform SQL injection and alter queries. (CVE-2024-1597)

References

Affected packages

Ubuntu:Pro:14.04:LTS / libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava?arch=source&distro=esm-infra-legacy%2Ftrusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
9.2-1002-1ubuntu0.14.04.1~esm1

Affected versions

9.*
9.2-1002-1

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "libpg-java",
            "binary_version":  "9.2-1002-1ubuntu0.14.04.1~esm1"
        },
        {
            "binary_name":  "libpostgresql-jdbc-java",
            "binary_version":  "9.2-1002-1ubuntu0.14.04.1~esm1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-21724",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-31197",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2024-1597",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:14.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.json"

Ubuntu:Pro:16.04:LTS / libpgjava

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
9.2-1002-1ubuntu0.16.04.1~esm1

Affected versions

9.*
9.2-1002-1

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "libpg-java",
            "binary_version":  "9.2-1002-1ubuntu0.16.04.1~esm1"
        },
        {
            "binary_name":  "libpostgresql-jdbc-java",
            "binary_version":  "9.2-1002-1ubuntu0.16.04.1~esm1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-21724",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-31197",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:16.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.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
Fixed
9.4.1212-1ubuntu0.1~esm2

Affected versions

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

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "libpostgresql-jdbc-java",
            "binary_version":  "9.4.1212-1ubuntu0.1~esm2"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-21724",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-31197",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-41946",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "low",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2024-1597",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:18.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.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
Fixed
42.2.10-1ubuntu0.1~esm2

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

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "libpostgresql-jdbc-java",
            "binary_version":  "42.2.10-1ubuntu0.1~esm2"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-21724",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-31197",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-41946",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "low",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2024-1597",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:20.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.json"

Ubuntu:Pro:22.04:LTS / libpgjava

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
42.3.3-1ubuntu0.1~esm1

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

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "libpostgresql-jdbc-java",
            "binary_version":  "42.3.3-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-31197",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-41946",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "low",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2024-1597",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:22.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.json"