USN-9491-1 (UBUNTU-CVE-2022-21724)

Vulnerability from osv_ubuntu – Published: 2026-12-03 22:31 – Updated: 2026-12-03 22:31 – Source website
VLAI
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)

Impacted products
Ecosystem Package Version
Ubuntu:Pro:14.04:LTS libpgjava
pkg:deb/ubuntu/libpgjava@9.2-1002-1ubuntu0.14.04.1~esm1?arch=source&distro=esm-infra-legacy/trusty
Affected: < 9.2-1002-1ubuntu0.14.04.1~esm1 (ecosystem)
9.2-1002-1
Ubuntu:Pro:16.04:LTS libpgjava
pkg:deb/ubuntu/libpgjava@9.2-1002-1ubuntu0.16.04.1~esm1?arch=source&distro=esm-apps-legacy/xenial
Affected: < 9.2-1002-1ubuntu0.16.04.1~esm1 (ecosystem)
9.2-1002-1
Ubuntu:Pro:18.04:LTS libpgjava
pkg:deb/ubuntu/libpgjava@9.4.1212-1ubuntu0.1~esm2?arch=source&distro=esm-apps/bionic
Affected: < 9.4.1212-1ubuntu0.1~esm2 (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~esm2?arch=source&distro=esm-apps/focal
Affected: < 42.2.10-1ubuntu0.1~esm2 (ecosystem)
42.2.6-142.2.8-142.2.9-142.2.10-142.2.10-1ubuntu0.1~esm1
Ubuntu:Pro:22.04:LTS libpgjava
pkg:deb/ubuntu/libpgjava@42.3.3-1ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy
Affected: < 42.3.3-1ubuntu0.1~esm1 (ecosystem)
42.2.23-142.2.24-142.3.1-142.3.2-142.3.3-1

{
  "affected": [
    {
      "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"
        }
      },
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:14.04:LTS",
        "name": "libpgjava",
        "purl": "pkg:deb/ubuntu/libpgjava@9.2-1002-1ubuntu0.14.04.1~esm1?arch=source\u0026distro=esm-infra-legacy/trusty"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.2-1002-1ubuntu0.14.04.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "9.2-1002-1"
      ]
    },
    {
      "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"
        }
      },
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "libpgjava",
        "purl": "pkg:deb/ubuntu/libpgjava@9.2-1002-1ubuntu0.16.04.1~esm1?arch=source\u0026distro=esm-apps-legacy/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.2-1002-1ubuntu0.16.04.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "9.2-1002-1"
      ]
    },
    {
      "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"
        }
      },
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "libpgjava",
        "purl": "pkg:deb/ubuntu/libpgjava@9.4.1212-1ubuntu0.1~esm2?arch=source\u0026distro=esm-apps/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.4.1212-1ubuntu0.1~esm2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "9.4.1212-1",
        "9.4.1212-1ubuntu0.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-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"
        }
      },
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "libpgjava",
        "purl": "pkg:deb/ubuntu/libpgjava@42.2.10-1ubuntu0.1~esm2?arch=source\u0026distro=esm-apps/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "42.2.10-1ubuntu0.1~esm2"
            }
          ],
          "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"
      ]
    },
    {
      "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"
        }
      },
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:22.04:LTS",
        "name": "libpgjava",
        "purl": "pkg:deb/ubuntu/libpgjava@42.3.3-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "42.3.3-1ubuntu0.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "42.2.23-1",
        "42.2.24-1",
        "42.3.1-1",
        "42.3.2-1",
        "42.3.3-1"
      ]
    }
  ],
  "aliases": [],
  "details": "It was discovered that the PostgreSQL JDBC Driver did not properly verify\nthat classes provided through certain connection properties implemented the\nexpected interfaces before instantiating them. An attacker able to control\nthe connection URL or properties could possibly use this issue to execute\narbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04\nLTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2022-21724)\n\nIt was discovered that the PostgreSQL JDBC Driver did not properly escape\ncolumn names in the ResultSet.refreshRow() method. An attacker could\npossibly use this issue to perform SQL injection and execute additional SQL\ncommands. (CVE-2022-31197)\n\nIt was discovered that the PostgreSQL JDBC Driver created temporary files\nwith insecure permissions when handling large input streams. A local\nattacker could possibly use this issue to obtain sensitive information.\nThis issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu\n22.04 LTS. (CVE-2022-41946)\n\nIt was discovered that the PostgreSQL JDBC Driver did not properly handle\ncertain query placeholders when using the simple query mode. An attacker\ncould possibly use this issue to perform SQL injection and alter queries.\n(CVE-2024-1597)",
  "id": "USN-9491-1",
  "modified": "2026-12-03T22:31:02Z",
  "published": "2026-12-03T22:31:02Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-9491-1"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2022-21724"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2022-31197"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2022-41946"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2024-1597"
    }
  ],
  "related": [],
  "schema_version": "1.9.2",
  "summary": "libpgjava vulnerabilities",
  "upstream": [
    "UBUNTU-CVE-2022-21724",
    "UBUNTU-CVE-2022-31197",
    "UBUNTU-CVE-2022-41946",
    "UBUNTU-CVE-2024-1597"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

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

JSON
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. The method is described in a publication.

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.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    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.