PYSEC-2026-521
Vulnerability from pysec - Published: 2026-06-29 11:50 - Updated: 2026-06-29 12:05Summary
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.
| Name | purl | redshift-connector |
|---|
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 2.1.13"
},
"package": {
"ecosystem": "PyPI",
"name": "redshift-connector"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.14"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.0.384",
"2.0.389",
"2.0.393",
"2.0.399",
"2.0.405",
"2.0.659",
"2.0.711",
"2.0.872",
"2.0.873",
"2.0.874",
"2.0.875",
"2.0.876",
"2.0.877",
"2.0.878",
"2.0.879",
"2.0.880",
"2.0.881",
"2.0.882",
"2.0.883",
"2.0.884",
"2.0.885",
"2.0.886",
"2.0.887",
"2.0.888",
"2.0.889",
"2.0.900",
"2.0.901",
"2.0.902",
"2.0.903",
"2.0.904",
"2.0.905",
"2.0.906",
"2.0.907",
"2.0.908",
"2.0.909",
"2.0.910",
"2.0.911",
"2.0.912",
"2.0.913",
"2.0.914",
"2.0.915",
"2.0.916",
"2.0.917",
"2.0.918",
"2.1.0",
"2.1.1",
"2.1.10",
"2.1.11",
"2.1.12",
"2.1.13",
"2.1.2",
"2.1.3",
"2.1.4",
"2.1.5",
"2.1.6",
"2.1.7",
"2.1.8",
"2.1.9"
]
}
],
"aliases": [
"CVE-2026-8838",
"GHSA-29h4-r29x-hchv"
],
"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: \u003c=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\n 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.\n\n### Acknowledgement\nAmazon Redshift would like to thank Kexin Chen (@ckx-sec) for collaborating through the coordinated disclosure process.",
"id": "PYSEC-2026-521",
"modified": "2026-06-29T12:05:47.112487Z",
"published": "2026-06-29T11:50:48.775479Z",
"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"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/redshift-connector"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-29h4-r29x-hchv"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"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",
"type": "CVSS_V4"
}
],
"summary": "amazon-redshift-python-driver vulnerable to Remote Code Execution via eval() Injection"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.