{"id":"CVE-2026-8838","aliases":["CVE-2026-8838","GHSA-29h4-r29x-hchv","PYSEC-2026-521"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution via eval() Injection in amazon-redshift-python-driver","summary":"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. \n\n\n\nTo remediate this issue, users should upgrade to version 2.1.14.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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. \n\n\n\nTo remediate this issue, users should upgrade to version 2.1.14.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.\n\nPara solucionar este problema, los usuarios deben actualizar a la versión 2.1.14.","source":"nvd"}],"published":"2026-05-18T20:15:37.933Z","modified":"2026-09-10T03:50:45.272Z","severity":{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"AMZN","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"2.1.13","status":"affected"}],"vendor":"AWS","product":"Amazon Redshift connector for Python","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.1.14"}],"ecosystem":"PyPI","package":"redshift-connector","purl":"pkg:pypi/redshift-connector","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.1.14"}],"ecosystem":"PyPI","package":"redshift-connector","purl":"pkg:pypi/redshift-connector","source":"pysec"}],"references":[{"url":"https://github.com/aws/amazon-redshift-python-driver/releases/tag/v2.1.14","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://aws.amazon.com/security/security-bulletins/2026-033-aws/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/aws/amazon-redshift-python-driver/security/advisories/GHSA-29h4-r29x-hchv","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8838","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/aws/amazon-redshift-python-driver/commit/69a69dfdead75918e20384da52bcd760ded8dbca","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://aws.amazon.com/security/security-bulletins/2026-033-aws","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/aws/amazon-redshift-python-driver","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/redshift-connector","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-29h4-r29x-hchv","tags":["advisory"],"sources":["pysec"]}],"credits":["Institute of Information Engineering, Chinese Academy of Sciences"],"assigner":"AMZN","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-19T12:56:00.394Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-8838","url":"https://www.cve.org/CVERecord?id=CVE-2026-8838","licence":"CVE Terms of Use","modified":"2026-05-19T12:56:12.712Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-29h4-r29x-hchv","url":"https://github.com/advisories/GHSA-29h4-r29x-hchv","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:45.272Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-8838","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8838","licence":"Public domain","modified":"2026-07-23T20:10:00.130Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-521","url":"https://osv.dev/vulnerability/PYSEC-2026-521","licence":"CC-BY-4.0","modified":"2026-07-13T16:15:33.681Z"}],"updatedAt":"2026-11-25T22:59:21.936Z","epss":{"score":0.00808,"percentile":0.58014,"date":"2026-12-01T12:00:22.000Z"}}