Vulnerabilities in pkg:pypi/redshift-connector
PACKAGECVE-2026-8838 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Redshift connector libraries in the PyPI ecosystem. The issue involves amazon-redshift-python-driver vulnerable to remote code execution via eval() injection. Remediation is available by upgrading affected packages to version 2.1.14.
pkg:pypi/redshift-connector
Vulnerability advisories affecting package pkg:pypi/redshift-connector. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-29h4-r29x-hchv | CVE-2026-8838 | CRITICAL | amazon-redshift-python-driver vulnerable to Remote Code Execution via eval() Injection |
| GHSA-r244-wg5g-6w2r | CVE-2025-5279 | HIGH | Issue with Amazon Redshift Python Connector and the BrowserAzureOAuth2CredentialsProvider plugin |
CVE-2026-8838 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-8838
To remediate this vulnerability, upgrade all affected Redshift connector dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install redshift-connector>=2.1.14
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show redshift-connector
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-8838, inspect your installed packages using pip:
pip show redshift-connector
Analyze the terminal output to locate any version of Redshift connector in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.14), your application is affected.
Note: The pip show redshift-connector command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Redshift connector, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-8838 Affected Redshift connector Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
redshift-connector
|
PyPI |
< 2.1.14
|
2.1.14
|
References
Frequently Asked Questions
What is CVE-2026-8838?
Which Redshift connector versions are affected?
What version fixes CVE-2026-8838?
Is redshift-connector affected?
What is the CVSS score of CVE-2026-8838?
What CWE is associated with CVE-2026-8838?
How can I check PyPI dependencies for CVE-2026-8838?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-29h4-r29x-hchv",
"modified" : "2026-06-02T21:41:29Z",
"published" : "2026-05-29T19:32:28Z",
"aliases" : [ "CVE-2026-8838" ],
"summary" : "amazon-redshift-python-driver vulnerable to Remote Code Execution via eval() Injection",
"details" : "### Summary\namazon-redshift-python-driver is the official Python connector for Amazon Redshift. In versions 2.1.13 and earlier, the driver insufficiently validates data received from the server during query result processing. A rogue server or man-in-the-middle could leverage this to execute arbitrary code on the client.\n\n### Impact\nWhen a client connects to a rogue server implementing the PostgreSQL wire protocol, the server can send specially crafted query responses that the driver processes without adequate input validation. This could result in arbitrary code execution in the client process, potentially enabling command execution, file system access, or credential theft with the privileges of the client application.\n\nImpacted versions: <=2.1.13\n\n### Patches\nThis has been addressed in amazon-redshift-python-driver version 2.1.14 (https://github.com/aws/amazon-redshift-python-driver/releases/tag/v2.1.14). Amazon Redshift recommends upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.\n\n### References\nIf there are any questions or comments about this advisory, contact AWS Security via the issue reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.\n\n### Acknowledgement\nAmazon Redshift would like to thank Kexin Chen (@ckx-sec) for collaborating through the coordinated disclosure process.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "redshift-connector"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.14"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.1.13"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aws/amazon-redshift-python-driver/security/advisories/GHSA-29h4-r29x-hchv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-8838"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/amazon-redshift-python-driver/commit/69a69dfdead75918e20384da52bcd760ded8dbca"
}, {
"type" : "WEB",
"url" : "https://aws.amazon.com/security/security-bulletins/2026-033-aws"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aws/amazon-redshift-python-driver"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/amazon-redshift-python-driver/releases/tag/v2.1.14"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-29T19:32:28Z",
"nvd_published_at" : "2026-05-18T21:16:41Z"
}
}