# CVE-2026-8178: Amazon Redshift JDBC Driver remote code execution via unsafe class loading

Source: https://junglewise.ai/threats/cve-2026-8178-amazon-redshift-jdbc-driver-remote-code-execution-via-unsafe-class  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-08. Updated: 2026-05-15  
License: CC BY 4.0 with a link back

CVE-2026-8178 · Severity: high · CVSS 8.1 · Published 2026-05-08

The Amazon Redshift JDBC Driver, which allows applications to connect to Redshift data warehouses, contains a security flaw in how it handles connection settings. An attacker who can control the database connection string used by an application could force the driver to load and run malicious code. This could lead to a full takeover of the server or application using the driver, potentially exposing sensitive data or disrupting business operations.

Technologies: [Amazon AWS](https://junglewise.ai/threats/technologies/aws), [com.amazon.redshift:redshift-jdbc42 (Maven)](https://junglewise.ai/threats/technologies/com-amazon-redshift-redshift-jdbc42). Vendors: [Amazon](https://junglewise.ai/threats/vendors/amazon), [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2026-8178 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-8178 being exploited in the wild.

**How severe is CVE-2026-8178?** High severity, with a CVSS score of 8.1, published 8 May 2026.

**Which products and versions are affected?** Amazon Redshift JDBC Driver < 2.2.2; com.amazon.redshift:redshift-jdbc42 (Maven) < 2.2.2, ECOSYSTEM:introduced=0,fixed=2.2.2.

**Is there a fix for CVE-2026-8178?** Yes. com.amazon.redshift:redshift-jdbc42 (Maven): upgrade to 2.2.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-8178 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-8178?** Check whether you run Amazon AWS, Amazon Redshift JDBC Driver or com.amazon.redshift:redshift-jdbc42 (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- com.amazon.redshift:redshift-jdbc42 (Maven): upgrade to 2.2.2 or later

  ```sh
  # set com.amazon.redshift:redshift-jdbc42 to 2.2.2 in your pom.xml or build.gradle
  ```


## Technical details

A remote code execution vulnerability exists in the Amazon Redshift JDBC Driver prior to version 2.2.2. The flaw stems from unsafe class loading during the processing of JDBC connection URL parameters. An attacker capable of influencing the connection string—such as through a web application that allows user-defined database connections—can trigger the driver to load and execute arbitrary Java classes. This occurs within the security context of the application using the driver. The issue is resolved in version 2.2.2.

## Affected products

- Amazon Redshift JDBC Driver < 2.2.2

## Identifiers

- CVE-2026-8178
- GHSA-wmmv-vvg5-993q

## Timeline

- 2026-05-08: disclosed
- 2026-05-08: patched: Fixed in version 2.2.2

## References

- [https://aws.amazon.com/security/security-bulletins/rss/2026-028-aws/](https://aws.amazon.com/security/security-bulletins/rss/2026-028-aws/)

## Related threats

- [An untrusted search path issue in Aurora PostgreSQL dialect detection in the AWS Advanced Go Wrapper from release 2026-04-06 (awssql/v2.0.0)](https://junglewise.ai/threats/cve-2026-126793-privilege-escalation-in-aurora-postgresql-dialect-detection-in)
- [AWS SDK for pandas EMR unverified bucket ownership](https://junglewise.ai/threats/cve-2026-127119-unverified-ownership-of-the-default-emr-cluster-log-location-in)
- [Amazon mcp-gateway-registry server-side request forgery in registration API](https://junglewise.ai/threats/cve-2026-125926-server-side-request-forgery-in-the-server-registration-and)
- [Amazon mcp-gateway-registry authorization bypass in management API](https://junglewise.ai/threats/cve-2026-100307-missing-authorization-on-the-external-management-api-in-mcp)
- [AWS Kiro CLI incorrect default permissions on session files](https://junglewise.ai/threats/cve-2026-124848-incorrect-default-permissions-on-session-transcripts-and-prompt)
