CVE-2024-32888

CVE-2024-32888 is a critical-severity SQL injection vulnerability in com.amazon.redshift:redshift-jdbc42 (maven), affecting versions < 2.1.0.28. It is fixed in 2.1.0.28.

Summary

Workarounds

Do not use the connection property preferQueryMode=simple. (NOTE: If you do not explicitly specify a query mode, then you are using the default of extended query mode and are not affected by this issue.)

References

Similar to finding in Postgres JDBC: https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56

If you have any questions or comments about this advisory, we ask that you contact AWS Security via our vulnerability reporting page or directly via email to [email protected]. Please do not create a public GitHub issue.

Impact

SQL injection is possible when using the non-default connection property preferQueryMode=simple in combination with application code which has a vulnerable SQL that negates a parameter value.

There is no vulnerability in the driver when using the default, extended query mode. Note that preferQueryMode is not a supported parameter in Redshift JDBC driver, and is inherited code from Postgres JDBC driver. Users who do not override default settings to utilize this unsupported query mode are not affected.

Untrusted input alters a database query, allowing the attacker to read or modify data the query was not intended to access. Typical impact: data disclosure or modification.

CVE-2024-32888 has a CVSS score of 10.0 (Critical). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (2.1.0.28); upgrading removes the vulnerable code path.

Affected versions

com.amazon.redshift:redshift-jdbc42 (< 2.1.0.28)

Security releases

com.amazon.redshift:redshift-jdbc42 → 2.1.0.28 (maven)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

This issue is patched in driver version 2.1.0.28.

Frequently Asked Questions

  1. What is CVE-2024-32888? CVE-2024-32888 is a critical-severity SQL injection vulnerability in com.amazon.redshift:redshift-jdbc42 (maven), affecting versions < 2.1.0.28. It is fixed in 2.1.0.28. Untrusted input alters a database query, allowing the attacker to read or modify data the query was not intended to access.
  2. How severe is CVE-2024-32888? CVE-2024-32888 has a CVSS score of 10.0 (Critical). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of com.amazon.redshift:redshift-jdbc42 are affected by CVE-2024-32888? com.amazon.redshift:redshift-jdbc42 (maven) versions < 2.1.0.28 is affected.
  4. Is there a fix for CVE-2024-32888? Yes. CVE-2024-32888 is fixed in 2.1.0.28. Upgrade to this version or later.
  5. Is CVE-2024-32888 exploitable, and should I be worried? Whether CVE-2024-32888 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2024-32888 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2024-32888? Upgrade com.amazon.redshift:redshift-jdbc42 to 2.1.0.28 or later.

Other vulnerabilities in com.amazon.redshift:redshift-jdbc42

CVE-2024-12744CVE-2024-32888CVE-2022-41828

Stop the waste.
Protect your environment with Kodem.