9.3critical
Remote Code Execution via eval() Injection in amazon-redshift-python-driver
- Severity
- 9.3critical CVSS:4.0 by AMZN
- Exploit likelihood
- 0.81% (higher than 58% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- AMZN
- Also known as
- GHSA-29h4-r29x-hchvPYSEC-2026-521
Description
Unsafe use of Python's eval() on server-received data in the vector_in() function in amazon-redshift-python-driver before 2.1.14 allows a rogue server or man-in-the-middle actor to execute arbitrary code on the client. To remediate this issue, users should upgrade to version 2.1.14.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| AWS Amazon Redshift connector for Python | up to 2.1.13 | CVE List |
| redshift-connector (PyPI) | before 2.1.14 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| AMZN | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| AMZN | 9.3critical CVSS:4.0 | 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 |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | 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 |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | Not scored CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
Unsafe use of Python's eval() on server-received data in the vector_in() function in amazon-redshift-python-driver before 2.1.14 allows a rogue server or man-in-the-middle actor to execute arbitrary code on the client. To remediate this issue, users should upgrade to version 2.1.14.
GitHub Advisory Database
Summary
amazon-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.
Impact
When 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.
Impacted versions: <=2.1.13
Patches
This 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.
References
If 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.
Acknowledgement
Amazon Redshift would like to thank Kexin Chen (@ckx-sec) for collaborating through the coordinated disclosure process.
NVD (es)
Uso inseguro de la función eval() de Python en datos recibidos del servidor en la función vector_in() en amazon-redshift-python-driver anterior a 2.1.14 permite a un servidor malicioso o a un actor man-in-the-middle ejecutar código arbitrario en el cliente. Para solucionar este problema, los usuarios deben actualizar a la versión 2.1.14.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-8838 changed 2026-05-19 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-29h4-r29x-hchv changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-8838 changed 2026-07-23 | Public domain |
| PyPA Advisory Database | PYSEC-2026-521 changed 2026-07-13 | CC-BY-4.0 |