UBUNTU-CVE-2024-1597

Source
https://ubuntu.com/security/CVE-2024-1597
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-1597.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2024-1597
Upstream
Published
2024-02-19T13:15:00Z
Modified
2025-07-18T16:56:17Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using PreferQueryMode=SIMPLE. Note this is not the default. In the default mode there is no vulnerability. A placeholder for a numeric value must be immediately preceded by a minus. There must be a second placeholder for a string value after the first placeholder; both must be on the same line. By constructing a matching string payload, the attacker can inject SQL to alter the query,bypassing the protections that parameterized queries bring against SQL Injection attacks. Versions before 42.7.2, 42.6.1, 42.5.5, 42.4.4, 42.3.9, and 42.2.28 are affected.

References

Affected packages

Ubuntu:Pro:14.04:LTS / libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava@9.2-1002-1?arch=source&distro=esm-infra-legacy/trusty

Affected ranges

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

Affected versions

9.*

9.2-1002-1

Ubuntu:Pro:16.04:LTS / libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava@9.2-1002-1?arch=source&distro=esm-apps/xenial

Affected ranges

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

Affected versions

9.*

9.2-1002-1

Ubuntu:Pro:18.04:LTS / libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava@9.4.1212-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic

Affected ranges

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

Affected versions

9.*

9.4.1212-1
9.4.1212-1ubuntu0.1~esm1

Ubuntu:Pro:20.04:LTS / libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava@42.2.10-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown 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

Ubuntu:22.04:LTS / libpgjava

Package

Name
libpgjava
Purl
pkg:deb/ubuntu/libpgjava@42.3.3-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown 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