Advisory

DEBIAN-CVE-2024-1597

Also known as: CVE-2024-1597

Summary

The record has no summary.

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2024-02-19 13:15 UTC
Modified
2026-11-02 12:00 UTC

Affected packages and fixes

libpgjava

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 42.5.5-0+deb12u1 (ecosystem)

Fixed versions

42.5.5-0+deb12u1

Fix

  • Fixed version 42.5.5-0+deb12u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libpgjava

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 42.7.2-1 (ecosystem)

Fixed versions

42.7.2-1

Fix

  • Fixed version 42.7.2-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libpgjava

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 42.7.2-1 (ecosystem)

Fixed versions

42.7.2-1

Fix

  • Fixed version 42.7.2-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences