CVE-2026-8178 Remote Code Execution via Unsafe Class Loading in Amazon Redshift JDBC Driver
Attackers can execute arbitrary code by manipulating JDBC connection URLs to load unsafe classes in applications using the Amazon Redshift JDBC Driver.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-8178?
CVE-2026-8178 is a critical code injection vulnerability in Amazon Redshift JDBC Driver, published on 8 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue exists in Amazon Redshift JDBC Driver versions prior to 2.2.2. Under certain conditions, the driver could load and execute arbitrary classes when processing JDBC connection URL parameters. An actor who can influence the connection URL could potentially execute code in the application context, provided a suitable class is available on the application's classpath.
To mitigate this issue, users should upgrade to version 2.2.2 or later.
Weakness: CWE-470
Which versions are affected by CVE-2026-8178?
2 open source packages ship an affected version, including com.amazon.redshift:redshift-jdbc42.
| Package | Affected | Fixed in |
|---|---|---|
com.amazon.redshift:redshift-jdbc42 Maven | All versions | 2.2.2 |
com.amazon.redshift:redshift-jdbc42 Maven | All versions | 2.2.2 |
How do I fix CVE-2026-8178?
Upgrade com.amazon.redshift:redshift-jdbc42 to 2.2.2 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-8178 being exploited?
There is no known exploitation of CVE-2026-8178 in the wild and no public exploit code.
Sources
Also known as GHSA-wmmv-vvg5-993q.