CVE-2024-1597

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-1597
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-1597.json
Aliases
Related
Published
2024-02-19T13:15:07Z
Modified
2024-05-23T01:28:36.684416Z
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

Git / github.com/pgjdbc/pgjdbc

Affected versions

REL42.*

REL42.3.0
REL42.3.0-rc2
REL42.3.1
REL42.3.1-rc1
REL42.3.1-rc2
REL42.3.2
REL42.3.2-rc2
REL42.3.3
REL42.3.3-rc1
REL42.3.4
REL42.3.4-rc1
REL42.3.5
REL42.3.5-rc1
REL42.3.6
REL42.3.6-rc1
REL42.3.7
REL42.3.7-rc1
REL42.3.8
REL42.3.8-rc1