{"answers":{"affected":"3 open source packages ship an affected version, including redshift-connector.","exploited":"There is no known exploitation of CVE-2026-8838 in the wild and no public exploit code.","fix":"Upgrade redshift-connector to 2.1.14 or later.","what":"CVE-2026-8838 is a critical code injection vulnerability in AWS Amazon Redshift connector for Python, published on 18 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-8838 and fix it if it is affected.\n\nWhat it is: CVE-2026-8838 is a critical code injection vulnerability in AWS Amazon Redshift connector for Python, published on 18 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-8838 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- redshift-connector (PyPI): affected all versions; fixed in 2.1.14\n- redshift-connector (PyPI): affected all versions; fixed in 2.1.14\n- redshift-connector (PyPI): affected all versions; fixed in 2.1.14\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-8838/ (Markdown: https://insights.sbomify.com/CVE-2026-8838/index.md)","id":"CVE-2026-8838","markdown":"https://insights.sbomify.com/CVE-2026-8838/index.md","name":"CVE-2026-8838","record":{"aliases":["CLEANSTART-2026-JT05441","CLEANSTART-2026-LW51175","ECHO-6de6-5ca5-2794","GHSA-29h4-r29x-hchv","MINI-33hh-hmhw-833f","MINI-76wp-jcw2-w3xp","MINI-rq7p-g498-gwmc","PYSEC-2026-521"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python Redshift driver","requires_auth":"none","summary":"A malicious server or man-in-the-middle can execute arbitrary code on the client via unsafe eval() usage in the Amazon Redshift Python driver.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"AMZN","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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. \n\nTo remediate this issue, users should upgrade to version 2.1.14.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-05-19","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-19T12:41:29Z","kind":"github_poc","ref":"https://github.com/Maxime288/CVE-2026-8838-RCE","stars":0,"title":null},{"date":"2026-07-16T07:01:44Z","kind":"github_poc","ref":"https://github.com/Sana-404/CVE-2026-8838-Mitigation-and-Detection","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Remote Code Execution via eval() Injection in amazon-redshift-python-driver","id":"CVE-2026-8838","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"MapPress Maps for WordPress \u003c= 2.96.6 - Unauthenticated Insecure Direct Object Reference via REST API Endpoints","id":"CVE-2026-8839"},"packages":[{"ecosystem":"PyPI","fixed":["2.1.14"],"introduced":["0"],"last_affected":[],"package":"redshift-connector","purl":null,"source":"GHSA-29h4-r29x-hchv"},{"ecosystem":"PyPI","fixed":["2.1.14"],"introduced":["0"],"last_affected":[],"package":"redshift-connector","purl":"pkg:pypi/redshift-connector","source":"GHSA-29h4-r29x-hchv"},{"ecosystem":"PyPI","fixed":["2.1.14"],"introduced":["0"],"last_affected":[],"package":"redshift-connector","purl":"pkg:pypi/redshift-connector","source":"PYSEC-2026-521"}],"prev":{"headline":"Cross-site scripting in WP Iframe Geo Style for Amazon affiliates","id":"CVE-2026-8837"},"products":["Amazon Redshift connector for Python"],"published":"2026-05-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-19","vendors":["AWS"]},"summary":"A malicious server or man-in-the-middle can execute arbitrary code on the client via unsafe eval() usage in the Amazon Redshift Python driver.","url":"https://insights.sbomify.com/CVE-2026-8838/"}