---
title: "CVE-2024-32888: Amazon JDBC Driver for Redshift SQL Injection via line comment generation"
url: https://erroneo.us/security/cve/CVE-2024-32888/
description: "CVE-2024-32888 (com.amazon.redshift:redshift-jdbc42 (Maven)): The Amazon JDBC Driver for Redshift is a Type 4 JDBC driver that provides database…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-05-15
date_modified: 2025-06-13
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-32888"
kev: false
cvss: 10
epss: 0.00778
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-32888: Amazon JDBC Driver for Redshift SQL Injection via line comment generation

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.8% , percentile 55: FIRST’s model estimates a 0.8% chance of exploitation activity in the next 30 days, higher than 55% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes com.amazon.redshift:redshift-jdbc42 (Maven) < 2.1.0.28, fixed in 2.1.0.28 . Check your lockfile, including transitive dependencies.

## What it is

The Amazon JDBC Driver for Redshift is a Type 4 JDBC driver that provides database connectivity through the standard JDBC application program interfaces (APIs) available in the Java Platform, Enterprise Editions. Prior to version 2.1.0.28, 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. This issue is patched in driver version 2.1.0.28. As a workaround, do not use the connection property preferQueryMode=simple. (NOTE: Those who do not explicitly specify a query mode use the default of extended query mode and are not affected by this issue.)

## Affected packages

- Maven `com.amazon.redshift:redshift-jdbc42` < 2.1.0.28 → fixed: 2.1.0.28

## Affected products (CVE record)

- aws amazon-redshift-jdbc-driver: < 2.1.0.28

## Severity

- GitHub_M CVSS 3.1: 10 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub CVSS 3.1: 10.0 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.78% probability of exploitation activity in the next 30 days; percentile 55.

## Sources

- [GitHub Advisory GHSA-x3wm-hffr-chwm](https://github.com/advisories/GHSA-x3wm-hffr-chwm)
- [CVE.org record CVE-2024-32888](https://www.cve.org/CVERecord?id=CVE-2024-32888)
- [NVD entry CVE-2024-32888](https://nvd.nist.gov/vuln/detail/CVE-2024-32888)
- [github.com](https://github.com/aws/amazon-redshift-jdbc-driver/security/advisories/GHSA-x3wm-hffr-chwm)
- [github.com](https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56)
- [github.com](https://github.com/aws/amazon-redshift-jdbc-driver/commit/0d354a5f26ca23f7cac4e800e3b8734220230319)
- [github.com](https://github.com/aws/amazon-redshift-jdbc-driver/commit/12a5e8ecfbb44c8154fc66041cca2e20ecd7b339)
- [github.com](https://github.com/aws/amazon-redshift-jdbc-driver/commit/bc93694201a291493778ce5369a72befeca5ba7d)
- [sonarsource.com](https://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw/)

---
Source page: https://erroneo.us/security/cve/CVE-2024-32888/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
