CVE & CISA-KEV Catalog

CVE-2024-1597

CRITICALEPSS 91th pctl
10.0
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
libpgjavaDebian
Fixed in:42.2.15-1+deb11u2CVE-2024-1597
Fixed in:42.5.5-0+deb12u1CVE-2024-1597
Fixed in:42.7.2-1CVE-2024-1597
Fixed in:42.7.2-1CVE-2024-1597
openshift-serverless-1/logicRocky
Fixed in:rhel8-operator@sha256:8fcf378e87a1eb66dd3906edff827ed55e5d991eb6961bf1d101eacfaaaeec40_amd64RHSA-2024:4057
Fixed in:rhel8-operator@sha256:e113674a0ce7abadb084823420724af4f97a7e109cfe921bad907e5d1cd46dca_ppc64leRHSA-2024:4057
Fixed in:operator-bundle@sha256:8309ccf050075499e5052a6af4ecfd53755636663a2ec0f4f0e94e9e6ddc251f_arm64RHSA-2024:4057
Fixed in:rhel8-operator@sha256:fbff2eb7134a4f3b3aff8ac3768981fcabd11aff983a366948ac75816c26a5b9_arm64RHSA-2024:4057
Fixed in:operator-bundle@sha256:e405a41d8c91661bae11aadc0a79490e3bc8ef278fc15c2dc2f026b300af1775_ppc64leRHSA-2024:4057
Fixed in:operator-bundle@sha256:f4495c801002a4501b6b472a2f709cf6f7e0955b74d407254f4aa00a5c26932c_amd64RHSA-2024:4057
openshift-serverless-1/logicRed Hat / RHEL
Fixed in:rhel8-operator@sha256:fbff2eb7134a4f3b3aff8ac3768981fcabd11aff983a366948ac75816c26a5b9_arm64RHSA-2024:4057
Fixed in:operator-bundle@sha256:8309ccf050075499e5052a6af4ecfd53755636663a2ec0f4f0e94e9e6ddc251f_arm64RHSA-2024:4057
Fixed in:rhel8-operator@sha256:8fcf378e87a1eb66dd3906edff827ed55e5d991eb6961bf1d101eacfaaaeec40_amd64RHSA-2024:4057
Fixed in:operator-bundle@sha256:f4495c801002a4501b6b472a2f709cf6f7e0955b74d407254f4aa00a5c26932c_amd64RHSA-2024:4057
Fixed in:rhel8-operator@sha256:e113674a0ce7abadb084823420724af4f97a7e109cfe921bad907e5d1cd46dca_ppc64leRHSA-2024:4057
Fixed in:operator-bundle@sha256:e405a41d8c91661bae11aadc0a79490e3bc8ef278fc15c2dc2f026b300af1775_ppc64leRHSA-2024:4057
openshift-serverless-1/logic-data-indexRocky
Fixed in:ephemeral-rhel8@sha256:2223754df4f475fc7240df4d833c3ad3d757375ceb2dba359164bd6e8475d267_arm64RHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:d6951064cd3ac48107a93d9d21df106157df0232645bb2d847589fda496b5c9a_arm64RHSA-2024:4057
Fixed in:ephemeral-rhel8@sha256:1d4c65ddd65b54b387f21bdabf408d180bcc0d835fec714a2c06b643187279de_ppc64leRHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:1050e0b388b09c494bcb2f9bc9d74eb1f12b1ef93218e3920434f7c09b22f9eb_ppc64leRHSA-2024:4057
Fixed in:ephemeral-rhel8@sha256:90938287390c5d53dd8311699daa4304444e0727fa1aed18e6b4712ef2da8ee4_amd64RHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:f188dc873609058aa3a4911526df0afc1f32c8b986c02646b403932750db5d19_amd64RHSA-2024:4057
openshift-serverless-1/logic-data-indexRed Hat / RHEL
Fixed in:ephemeral-rhel8@sha256:1d4c65ddd65b54b387f21bdabf408d180bcc0d835fec714a2c06b643187279de_ppc64leRHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:1050e0b388b09c494bcb2f9bc9d74eb1f12b1ef93218e3920434f7c09b22f9eb_ppc64leRHSA-2024:4057
Fixed in:ephemeral-rhel8@sha256:90938287390c5d53dd8311699daa4304444e0727fa1aed18e6b4712ef2da8ee4_amd64RHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:f188dc873609058aa3a4911526df0afc1f32c8b986c02646b403932750db5d19_amd64RHSA-2024:4057
Fixed in:ephemeral-rhel8@sha256:2223754df4f475fc7240df4d833c3ad3d757375ceb2dba359164bd6e8475d267_arm64RHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:d6951064cd3ac48107a93d9d21df106157df0232645bb2d847589fda496b5c9a_arm64RHSA-2024:4057
openshift-serverless-1/logic-jobs-serviceRocky
Fixed in:ephemeral-rhel8@sha256:1b186d5cd499f69de3f9b6053092ce1e634ac4101c8dec5bbae664a0405ec4a3_amd64RHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:19c9009a5f3a73553ebbb0a34063a9236635d41f9457de150d12f8b1c9d9a80e_arm64RHSA-2024:4057
Fixed in:ephemeral-rhel8@sha256:2664e7f4c310f561e254f1b07a1f189e8c674556545d27f3e108358f04258979_arm64RHSA-2024:4057
Fixed in:ephemeral-rhel8@sha256:40893aa91a3cbbe99aa0e47032e64e31c176d0b857a3fe36151668f87ed1b346_ppc64leRHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:a7fc943642f5272d25292a25bfd6d2a35ef30e5f9a7419f935988a764741ba57_ppc64leRHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:ed0f3c6feaed07a6f2ce2774fdb2ec96aa4855426396a39350289528794818bc_amd64RHSA-2024:4057
openshift-serverless-1/logic-jobs-serviceRed Hat / RHEL
Fixed in:ephemeral-rhel8@sha256:1b186d5cd499f69de3f9b6053092ce1e634ac4101c8dec5bbae664a0405ec4a3_amd64RHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:ed0f3c6feaed07a6f2ce2774fdb2ec96aa4855426396a39350289528794818bc_amd64RHSA-2024:4057
Fixed in:ephemeral-rhel8@sha256:2664e7f4c310f561e254f1b07a1f189e8c674556545d27f3e108358f04258979_arm64RHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:19c9009a5f3a73553ebbb0a34063a9236635d41f9457de150d12f8b1c9d9a80e_arm64RHSA-2024:4057
Fixed in:ephemeral-rhel8@sha256:40893aa91a3cbbe99aa0e47032e64e31c176d0b857a3fe36151668f87ed1b346_ppc64leRHSA-2024:4057
Fixed in:postgresql-rhel8@sha256:a7fc943642f5272d25292a25bfd6d2a35ef30e5f9a7419f935988a764741ba57_ppc64leRHSA-2024:4057
openshift-serverless-1/logic-kn-workflow-cliRocky
Fixed in:artifacts-rhel8@sha256:32613823ccf9bba0b8bb586b9859c4b68b548953445ee221907bedf1841a1dc9_amd64RHSA-2024:4057
Fixed in:artifacts-rhel8@sha256:ab13f02335cf4f22b72d7a477b1de9c3634b2a6d66ddc536192d0061d7f572d5_arm64RHSA-2024:4057
openshift-serverless-1/logic-kn-workflow-cliRed Hat / RHEL
Fixed in:artifacts-rhel8@sha256:ab13f02335cf4f22b72d7a477b1de9c3634b2a6d66ddc536192d0061d7f572d5_arm64RHSA-2024:4057
Fixed in:artifacts-rhel8@sha256:32613823ccf9bba0b8bb586b9859c4b68b548953445ee221907bedf1841a1dc9_amd64RHSA-2024:4057
openshift-serverless-1/logic-swfRed Hat / RHEL
Fixed in:devmode-rhel8@sha256:0fa9ee1c7cd198e83187511f24084661cbbaa3f4d6a496e3ead0349a672fc5d0_ppc64leRHSA-2024:4057
Fixed in:builder-rhel8@sha256:35a03270b6f2908fd611f4e1eeb4fdc3d44ac82bb6dc188a03bb134d86def8f4_amd64RHSA-2024:4057
Fixed in:devmode-rhel8@sha256:a24194315193f8d7e46f7c2862b88356c2e676287503cc58dbad629f0f196496_amd64RHSA-2024:4057
Fixed in:builder-rhel8@sha256:278dc04865d985aba56ff0a6e6a2aa2fdce544459cab642dacb6e8de948a19aa_arm64RHSA-2024:4057
Fixed in:devmode-rhel8@sha256:f98022ead7f3708016d5815be0d637a22f288af66b6f4a6be906afd7ce7514ca_arm64RHSA-2024:4057
Fixed in:builder-rhel8@sha256:b4a682402e78ad34e16ab038771f51205a7c117de49bb8f585eb7a0bfa59a586_ppc64leRHSA-2024:4057
openshift-serverless-1/logic-swfRocky
Fixed in:devmode-rhel8@sha256:f98022ead7f3708016d5815be0d637a22f288af66b6f4a6be906afd7ce7514ca_arm64RHSA-2024:4057
Fixed in:devmode-rhel8@sha256:a24194315193f8d7e46f7c2862b88356c2e676287503cc58dbad629f0f196496_amd64RHSA-2024:4057
Fixed in:builder-rhel8@sha256:35a03270b6f2908fd611f4e1eeb4fdc3d44ac82bb6dc188a03bb134d86def8f4_amd64RHSA-2024:4057
Fixed in:builder-rhel8@sha256:b4a682402e78ad34e16ab038771f51205a7c117de49bb8f585eb7a0bfa59a586_ppc64leRHSA-2024:4057
Fixed in:devmode-rhel8@sha256:0fa9ee1c7cd198e83187511f24084661cbbaa3f4d6a496e3ead0349a672fc5d0_ppc64leRHSA-2024:4057
Fixed in:builder-rhel8@sha256:278dc04865d985aba56ff0a6e6a2aa2fdce544459cab642dacb6e8de948a19aa_arm64RHSA-2024:4057
postgresql-jdbcRed Hat / RHEL
Fixed in:0:42.2.3-7.el8_4RHSA-2024:4375
Fixed in:0:42.2.14-5.el8_8RHSA-2024:3313
Fixed in:0:42.2.14-5.el8_8RHSA-2024:3313
Fixed in:0:42.2.3-5.el8_2RHSA-2024:2624
Fixed in:0:42.2.3-5.el8_2RHSA-2024:2624
Fixed in:0:42.2.3-5.el8_6RHSA-2024:4402
Fixed in:0:42.2.3-5.el8_6RHSA-2024:4402
Fixed in:0:42.2.14-3.el8_9RHSA-2024:1435
Fixed in:0:42.2.14-3.el8_9RHSA-2024:1435
Fixed in:0:42.2.3-7.el8_4RHSA-2024:4375
Fixed in:0:42.2.28-1.el9_3RHSA-2024:1436
Fixed in:0:42.2.28-1.el9_0RHSA-2024:1999
Fixed in:0:42.2.28-1.el9_2RHSA-2024:1649
Fixed in:0:42.2.28-1.el9_2RHSA-2024:1649
Fixed in:0:42.2.28-1.el9_0RHSA-2024:1999
Fixed in:0:42.2.28-1.el9_3RHSA-2024:1436
postgresql-jdbcRocky
Fixed in:0:42.2.14-5.el8_8RHSA-2024:3313
Fixed in:0:42.2.14-5.el8_8RHSA-2024:3313
Fixed in:0:42.2.3-5.el8_2RHSA-2024:2624
Fixed in:0:42.2.3-5.el8_2RHSA-2024:2624
Fixed in:0:42.2.3-5.el8_6RHSA-2024:4402
Fixed in:0:42.2.3-5.el8_6RHSA-2024:4402
Fixed in:0:42.2.14-3.el8_9RHSA-2024:1435
Fixed in:0:42.2.14-3.el8_9RHSA-2024:1435
Fixed in:0:42.2.3-7.el8_4RHSA-2024:4375
Fixed in:0:42.2.3-7.el8_4RHSA-2024:4375
Fixed in:0:42.2.28-1.el9_3RHSA-2024:1436
Fixed in:0:42.2.28-1.el9_3RHSA-2024:1436
Fixed in:0:42.2.28-1.el9_0RHSA-2024:1999
Fixed in:0:42.2.28-1.el9_0RHSA-2024:1999
Fixed in:0:42.2.28-1.el9_2RHSA-2024:1649
Fixed in:0:42.2.28-1.el9_2RHSA-2024:1649
postgresql-jdbc-javadocRed Hat / RHEL
Fixed in:0:42.2.14-3.el8_9RHSA-2024:1435
Fixed in:0:42.2.14-5.el8_8RHSA-2024:3313
Fixed in:0:42.2.3-5.el8_6RHSA-2024:4402
Fixed in:0:42.2.3-7.el8_4RHSA-2024:4375
Fixed in:0:42.2.3-5.el8_2RHSA-2024:2624
postgresql-jdbc-javadocRocky
Fixed in:0:42.2.14-3.el8_9RHSA-2024:1435
Fixed in:0:42.2.3-7.el8_4RHSA-2024:4375
Fixed in:0:42.2.3-5.el8_2RHSA-2024:2624
Fixed in:0:42.2.3-5.el8_6RHSA-2024:4402
Fixed in:0:42.2.14-5.el8_8RHSA-2024:3313
rh-sso-7/sso7-rhel8Red Hat / RHEL
Fixed in:operator-bundle@sha256:fa9d954957c644853886943a2bb5e18b178f3595384bdb73b8e5f7e5db0f4932_amd64RHSA-2024:1686
rh-sso-7/sso7-rhel8Rocky
Fixed in:operator-bundle@sha256:fa9d954957c644853886943a2bb5e18b178f3595384bdb73b8e5f7e5db0f4932_amd64RHSA-2024:1686
rh-sso-7/sso76Rocky
Fixed in:openshift-rhel8@sha256:c70d15537cad829f067e8c6ad57dfe5300fd9ff768d27973354bb061cae7754b_amd64RHSA-2024:1686
Fixed in:openshift-rhel8@sha256:89f7ae83a1818e771e20982a6a4dd2c01ded703c65e90263f961504a3d1c5b37_ppc64leRHSA-2024:1686
Fixed in:openshift-rhel8@sha256:efe74faab04366421442d5febdc4087aece4506a92c0ba1be42fe627a23fb0cb_s390xRHSA-2024:1686
rh-sso-7/sso76Red Hat / RHEL
Fixed in:openshift-rhel8@sha256:efe74faab04366421442d5febdc4087aece4506a92c0ba1be42fe627a23fb0cb_s390xRHSA-2024:1686
Fixed in:openshift-rhel8@sha256:c70d15537cad829f067e8c6ad57dfe5300fd9ff768d27973354bb061cae7754b_amd64RHSA-2024:1686
Fixed in:openshift-rhel8@sha256:89f7ae83a1818e771e20982a6a4dd2c01ded703c65e90263f961504a3d1c5b37_ppc64leRHSA-2024:1686

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeChanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Exploit Intelligence

4.81%probability of exploitation in 30 days
91stpercentile

High risk: more likely to be exploited than 91% of all known CVEs.

References

Related Vulnerabilities

Other CWE-89 (SQL Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2014-3704High7.5100%-Fix
CVE-2015-7297High7.5100%--
CVE-2024-29824High8.8100%KEVFix
CVE-2023-34362Critical9.8100%KEV + RansomFix
CVE-2019-7481High7.5100%KEV + RansomFix
CVE-2024-29826High8.8100%-Fix
Embed a live status badge for CVE-2024-1597
CVE-2024-1597 severity badge

Markdown

[![CVE-2024-1597](https://tridentstack.com/cve/badge/CVE-2024-1597.svg)](https://tridentstack.com/cve/CVE-2024-1597)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-1597"><img src="https://tridentstack.com/cve/badge/CVE-2024-1597.svg" alt="CVE-2024-1597"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-03.