The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-8838

CVE-2026-8838: Amazon Redshift Python Driver RCE Flaw

CVE-2026-8838 is a remote code execution vulnerability in amazon-redshift-python-driver caused by unsafe eval() usage. Attackers can execute arbitrary code on clients. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 21, 2026

CVE-2026-8838 Overview

CVE-2026-8838 is a code injection vulnerability in the amazon-redshift-python-driver (also known as redshift_connector) affecting versions before 2.1.14. The driver calls Python's eval() on data received from the server inside the vector_in() function. A rogue Redshift server or a man-in-the-middle (MITM) attacker positioned between the client and a legitimate server can return crafted vector data that triggers arbitrary Python code execution on the client host. The flaw is tracked as CWE-94: Improper Control of Generation of Code. AWS published Security Bulletin 2026-033 and fixed the issue in release v2.1.14.

Critical Impact

Unauthenticated network attackers can achieve arbitrary code execution on any client running a vulnerable amazon-redshift-python-driver build that connects to an attacker-controlled or intercepted Redshift endpoint.

Affected Products

  • amazon-redshift-python-driver (PyPI package redshift_connector) versions earlier than 2.1.14
  • Python applications, ETL jobs, and analytics tools embedding the vulnerable driver
  • CI/CD pipelines and notebooks that connect to Amazon Redshift using the affected driver

Discovery Timeline

  • 2026-05-18 - CVE-2026-8838 published to NVD
  • 2026-05-19 - Last updated in NVD database
  • Release v2.1.14 - Fix published in the amazon-redshift-python-driver GitHub repository and GHSA-29h4-r29x-hchv

Technical Details for CVE-2026-8838

Vulnerability Analysis

The amazon-redshift-python-driver implements type handlers that convert wire-protocol values from the Redshift server into Python objects. The vector_in() handler parses incoming vector type payloads and passes the server-supplied string directly into Python's built-in eval(). Because eval() executes any valid Python expression, a server response containing function calls or attribute lookups runs inside the client process with the privileges of the calling application. The result is unauthenticated remote code execution on the client when it processes a single malicious result row.

Exploitation requires no client interaction beyond issuing a query that returns a vector column. Any code path that materializes the result, including cursor iteration and pandas integration via fetch_dataframe, triggers the unsafe eval() call.

Root Cause

The root cause is the use of eval() as a deserialization primitive for untrusted server input [CWE-94]. The driver treats wire data as trusted Python source code instead of parsing it with a structured, non-executing parser such as ast.literal_eval or a dedicated vector decoder. No allowlist, sandbox, or length restriction is applied to the input.

Attack Vector

Two realistic attack scenarios exist. First, a rogue server: an attacker who controls a Redshift-compatible endpoint, such as a developer pointed at a malicious staging host, returns a crafted vector value and executes code on the client. Second, a man-in-the-middle attacker who can intercept or downgrade the connection, for example through TLS stripping or DNS hijacking on untrusted networks, replaces legitimate vector payloads with a Python expression that invokes os.system, subprocess.Popen, or imports a loader for second-stage malware. The malicious payload is a Python expression rather than a binary, so signature-based network controls are ineffective.

No verified public proof-of-concept code is referenced in the advisory. See GHSA-29h4-r29x-hchv for the upstream technical description.

Detection Methods for CVE-2026-8838

Indicators of Compromise

  • Python processes hosting redshift_connector spawning unexpected child processes such as sh, bash, cmd.exe, powershell.exe, or python -c
  • Outbound network connections from Python interpreters to non-Redshift destinations shortly after a database query
  • Redshift client connections to unfamiliar hostnames, IP addresses outside known AWS ranges, or endpoints reached over plaintext or downgraded TLS
  • New files written under user home directories or temp paths by a Python process that normally only reads query results

Detection Strategies

  • Inventory installed Python packages across endpoints, build agents, and notebooks and flag any redshift_connector or amazon-redshift-python-driver version below 2.1.14
  • Correlate process-tree telemetry to identify Python interpreters that execute shell, scripting, or LOLBin children immediately after Redshift connection events
  • Monitor for TLS connections from Python processes that fail certificate validation or negotiate connections without sslmode=verify-full

Monitoring Recommendations

  • Enable EDR child-process and command-line logging on hosts that run analytics, ETL, or BI tooling using Python
  • Log Redshift client connections at the network layer and alert on destinations outside approved Redshift cluster endpoints
  • Track package installations in CI/CD systems and fail builds that pin redshift_connector<2.1.14

How to Mitigate CVE-2026-8838

Immediate Actions Required

  • Upgrade redshift_connector to version 2.1.14 or later on every host, container image, Lambda layer, and notebook environment
  • Enforce sslmode=verify-full on all Redshift connections so MITM attackers cannot substitute server responses
  • Restrict outbound traffic from analytics and ETL hosts to known Redshift endpoints only
  • Rotate credentials and review process and network logs on any host that connected to an untrusted Redshift endpoint while running a vulnerable driver

Patch Information

AWS released the fix in amazon-redshift-python-driver version 2.1.14, available on PyPI and from the GitHub release page. Details are documented in AWS Security Bulletin 2026-033 and GitHub Security Advisory GHSA-29h4-r29x-hchv. The patch replaces the unsafe eval() call in vector_in() with a safe parser for vector values.

Workarounds

  • If immediate upgrade is not possible, avoid issuing queries that return vector columns from the affected driver
  • Pin connections to trusted, authenticated Redshift endpoints and require TLS with full certificate verification
  • Run Python applications that use the driver under least-privilege service accounts with restricted filesystem and network egress
bash
# Upgrade the driver to the patched release
pip install --upgrade "redshift_connector>=2.1.14"

# Verify the installed version
python -c "import redshift_connector; print(redshift_connector.__version__)"

# Enforce strict TLS when connecting
# (example connection arguments)
# redshift_connector.connect(
#     host="my-cluster.xxxx.region.redshift.amazonaws.com",
#     database="prod",
#     user="analyst",
#     password="...",
#     sslmode="verify-full",
# )

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAmazon Redshift

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • AWS Security Bulletin 2026-033

  • GitHub Release v2.1.14

  • GitHub Security Advisory GHSA-29h4-r29x-hchv
  • Related CVEs
  • CVE-2026-8178: Amazon Redshift JDBC Driver RCE Flaw

  • CVE-2025-5279: Redshift Python Connector SSL Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English