Every CVE Search/ Get API key

CVE-2022-41828

com.amazon.redshift:redshift-jdbc42 vulnerable to remote command execution

8.1 HighPublic exploitFix available

In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.92%Up 1.0 points since Sep 30, 2022
90%50%10%1%

What each source reports

NVD Score used 8.1

In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.

Record
CVE-2022-41828
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-704
Updated
2026-11-02
CVE List 8.8

In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.

Record
CVE-2022-41828
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-704
Updated
2026-11-02
EUVDEUVD-2022-7116 8.8

In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.

Record
EUVD-2022-7116
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-jc69-hjw2-fm86 7.1

com.amazon.redshift:redshift-jdbc42 vulnerable to remote command execution

Impact

A potential remote command execution issue exists within redshift-jdbc42 versions 2.1.0.7 and below. When plugins are used with the driver, it instantiates plugin instances based on Java class names provided via the sslhostnameverifier, socketFactory, sslfactory, and sslpasswordcallback connection properties. In affected versions, the driver does not verify if a plugin class implements the expected interface before instantiatiaton. This can lead to loading of arbitrary Java classes, which a knowledgeable attacker with control over the JDBC URL can use to achieve remote code execution.

Patches

This issue is patched within redshift-jdbc-42 2.1.0.8 and above.

Workarounds

We advise customers using plugins to upgrade to redshift-jdbc42 version 2.1.0.8 or above. There are no known workarounds for this issue.

For more information

If you have any questions or comments about this advisory, please contact AWS Security at [email protected].

Record
GHSA-jc69-hjw2-fm86
CVSS 3.1
7.1 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:L
Weakness
CWE-704
Updated
2026-11-02
OSV 8.8

In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.

Record
CVE-2022-41828
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-jc69-hjw2-fm86 7.1

com.amazon.redshift:redshift-jdbc42 vulnerable to remote command execution

Impact

A potential remote command execution issue exists within redshift-jdbc42 versions 2.1.0.7 and below. When plugins are used with the driver, it instantiates plugin instances based on Java class names provided via the sslhostnameverifier, socketFactory, sslfactory, and sslpasswordcallback connection properties. In affected versions, the driver does not verify if a plugin class implements the expected interface before instantiatiaton. This can lead to loading of arbitrary Java classes, which a knowledgeable attacker with control over the JDBC URL can use to achieve remote code execution.

Patches

This issue is patched within redshift-jdbc-42 2.1.0.8 and above.

Workarounds

We advise customers using plugins to upgrade to redshift-jdbc42 version 2.1.0.8 or above. There are no known workarounds for this issue.

For more information

If you have any questions or comments about this advisory, please contact AWS Security at [email protected].

Record
GHSA-jc69-hjw2-fm86
CVSS 3.1
7.1 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:L
Weakness
CWE-704
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
com.amazon.redshift:redshift-jdbc42
Maven
before 2.1.0.8
2.1.0.8
com.amazon.redshift:redshift-jdbc42
Maven
before 2.1.0.8, plus listed versions
2.0.0.32.0.0.42.0.0.52.0.0.62.0.0.7
Show 7 moreShow less
2.1.0.12.1.0.22.1.0.32.1.0.42.1.0.52.1.0.62.1.0.7
2.1.0.8

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubmurataydemir/CVE-2022-418282022-12-09

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-41828 is a high vulnerability (CVSS 8.1) in Amazon Web Services Redshift Java Database Connectivity Driver, published September 29, 2022. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 1.92%, the 80th percentile. Fixed in com.amazon.redshift:redshift-jdbc42 2.1.0.8.

References

MoveEnter Open