{"id":"USN-9491-1","summary":"libpgjava vulnerabilities","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)","modified":"2026-12-05T10:13:21.765464806Z","published":"2026-12-03T22:31:02Z","related":["UBUNTU-CVE-2022-21724","UBUNTU-CVE-2022-31197","UBUNTU-CVE-2022-41946","UBUNTU-CVE-2024-1597"],"upstream":["CVE-2022-21724","CVE-2022-31197","CVE-2022-41946","CVE-2024-1597","UBUNTU-CVE-2022-21724","UBUNTU-CVE-2022-31197","UBUNTU-CVE-2022-41946","UBUNTU-CVE-2024-1597"],"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"}],"affected":[{"package":{"name":"libpgjava","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/libpgjava?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.2-1002-1ubuntu0.14.04.1~esm1"}]}],"versions":["9.2-1002-1"],"ecosystem_specific":{"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"}],"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"},"database_specific":{"cves_map":{"cves":[{"id":"CVE-2022-21724","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"score":"medium","source":"SELF","type":"Ubuntu"}]},{"id":"CVE-2022-31197","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","source":"CNA"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium","source":"SELF"}]},{"id":"CVE-2024-1597","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"},{"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":"Ubuntu","score":"medium","source":"SELF"}]}],"ecosystem":"Ubuntu:Pro:14.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.json"}},{"package":{"name":"libpgjava","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libpgjava?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.2-1002-1ubuntu0.16.04.1~esm1"}]}],"versions":["9.2-1002-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libpg-java","binary_version":"9.2-1002-1ubuntu0.16.04.1~esm1"},{"binary_version":"9.2-1002-1ubuntu0.16.04.1~esm1","binary_name":"libpostgresql-jdbc-java"}],"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.json","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"},{"source":"SELF","type":"Ubuntu","score":"medium"}]},{"id":"CVE-2022-31197","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","source":"CNA"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}],"ecosystem":"Ubuntu:Pro:16.04:LTS"}}},{"package":{"name":"libpgjava","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/libpgjava?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.4.1212-1ubuntu0.1~esm2"}]}],"versions":["9.4.1212-1","9.4.1212-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"9.4.1212-1ubuntu0.1~esm2","binary_name":"libpostgresql-jdbc-java"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:18.04:LTS","cves":[{"id":"CVE-2022-21724","severity":[{"type":"CVSS_V3","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"},{"score":"medium","source":"SELF","type":"Ubuntu"}]},{"id":"CVE-2022-31197","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","source":"CNA"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium","source":"SELF"}]},{"id":"CVE-2022-41946","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"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":"Ubuntu","score":"low","source":"SELF"}]},{"id":"CVE-2024-1597","severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"},{"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"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.json"}},{"package":{"name":"libpgjava","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/libpgjava?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"42.2.10-1ubuntu0.1~esm2"}]}],"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_version":"42.2.10-1ubuntu0.1~esm2","binary_name":"libpostgresql-jdbc-java"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"cves_map":{"cves":[{"severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"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":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2022-21724"},{"id":"CVE-2022-31197","severity":[{"type":"CVSS_V3","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":"Ubuntu","score":"medium","source":"SELF"}]},{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"CNA"},{"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"},{"source":"SELF","type":"Ubuntu","score":"low"}],"id":"CVE-2022-41946"},{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"CNA"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"source":"SELF","type":"Ubuntu","score":"medium"}],"id":"CVE-2024-1597"}],"ecosystem":"Ubuntu:Pro:20.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.json"}},{"package":{"name":"libpgjava","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/libpgjava?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"42.3.3-1ubuntu0.1~esm1"}]}],"versions":["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_version":"42.3.3-1ubuntu0.1~esm1","binary_name":"libpostgresql-jdbc-java"}]},"database_specific":{"cves_map":{"cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","source":"CNA"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2022-31197"},{"severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"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"},{"source":"SELF","type":"Ubuntu","score":"low"}],"id":"CVE-2022-41946"},{"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"},{"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":"Ubuntu","score":"medium","source":"SELF"}],"id":"CVE-2024-1597"}],"ecosystem":"Ubuntu:Pro:22.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9491-1.json"}}],"schema_version":"1.9.2"}