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-2020-27619

CVE-2020-27619: Python RCE Vulnerability via eval()

CVE-2020-27619 is a remote code execution vulnerability in Python 3 through 3.9.0 where CJK codec tests execute eval() on HTTP-retrieved content. This post covers the technical details, affected versions, and mitigation.

Updated: May 16, 2026

CVE-2020-27619 Overview

CVE-2020-27619 affects Python 3 through version 3.9.0. The vulnerability resides in Lib/test/multibytecodec_support.py, where the CJK (Chinese, Japanese, Korean) codec tests call eval() on content retrieved over HTTP. An attacker capable of intercepting or controlling the HTTP response can inject arbitrary Python expressions that execute on the system running the test suite. The flaw was reported in Python issue 41944 and corrected via multiple commits to CPython. Downstream consumers including Fedora, NetApp, Gentoo, and Oracle Communications Cloud Native Core have issued advisories.

Critical Impact

A network attacker can achieve arbitrary code execution on systems running Python's CJK codec tests by serving malicious HTTP content to eval().

Affected Products

  • Python 3.x through 3.9.0
  • Fedora 33 and 34
  • Oracle Communications Cloud Native Core Network Function Cloud Native Environment 22.2.0

Discovery Timeline

  • 2020-10-22 - CVE-2020-27619 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-27619

Vulnerability Analysis

The vulnerability is a code injection flaw in the CPython test infrastructure. The file Lib/test/multibytecodec_support.py contains tests that validate CJK codec behavior by downloading reference mapping data from external URLs over HTTP. The retrieved content is then passed directly to Python's eval() built-in function to parse the mapping. Because eval() interprets its input as a Python expression, any controllable byte in the HTTP response becomes executable code in the context of the test runner.

The issue is amplified by the use of unencrypted HTTP, which permits trivial man-in-the-middle modification. The test suite runs with the privileges of the invoking user, which in continuous integration (CI) pipelines or distribution build systems may include access to signing keys, source repositories, and deployment credentials.

Root Cause

The root cause is the unsafe deserialization of untrusted network content through eval(). Test code treated remote mapping files as trusted Python expressions rather than parsing them with a restricted, data-only parser such as ast.literal_eval() or a structured format like JSON. Combined with cleartext HTTP transport, this produced a network-reachable code execution primitive.

Attack Vector

An attacker positioned on the network path between the test host and the remote mapping server can rewrite the HTTP response body to contain Python expressions. When eval() processes the response, the injected expression executes immediately. This vector is exploitable against developers, CI runners, and downstream packagers who run the Python test suite during builds. Exploitation requires no authentication and no user interaction beyond initiating the test run.

For technical details, refer to the upstream fix commits including CPython commit 2ef5caa5 and CPython commit b664a1df.

Detection Methods for CVE-2020-27619

Indicators of Compromise

  • Outbound HTTP (not HTTPS) connections from Python test runners to external codec mapping hosts during test execution.
  • Unexpected child processes spawned by python or pytest processes during runs of test_multibytecodec or related CJK codec tests.
  • Modified or unsigned responses on HTTP downloads of Unicode mapping files used in CPython tests.

Detection Strategies

  • Inventory Python installations and identify versions at or below 3.9.0 across endpoints, build servers, and container images.
  • Monitor CI/CD environments for invocations of Lib/test/multibytecodec_support.py against unpatched interpreters.
  • Inspect network traffic from build hosts for cleartext HTTP retrievals of files passed to eval() in test contexts.

Monitoring Recommendations

  • Alert on Python processes initiating outbound HTTP connections to non-allowlisted domains during test phases.
  • Track package manager events that install or upgrade Python on production and developer systems.
  • Log and review CI pipeline execution where Python's full test suite runs, with attention to network egress and spawned processes.

How to Mitigate CVE-2020-27619

Immediate Actions Required

  • Upgrade Python to a patched release: 3.6.13, 3.7.10, 3.8.7, 3.9.1, or later.
  • Apply distribution updates from Fedora, Gentoo (GLSA 202402-04), and NetApp (NTAP-20201123-0004).
  • Apply the Oracle Critical Patch Update from July 2022 for affected Communications Cloud Native Core deployments (CPU July 2022).
  • Avoid running the Python test suite on unpatched interpreters in network-connected environments.

Patch Information

The fix replaces the unsafe eval() call with safe parsing of locally cached mapping data and uses HTTPS for retrieval. The change is distributed across multiple CPython commits, including commit 43e52310, commit 6c6c256d, and commit e912e945. Refer to the Python issue tracker entry for the full discussion.

Workarounds

  • Skip the affected CJK codec tests on unpatched Python versions by excluding test_multibytecodec from test runs.
  • Restrict outbound network access from build and test environments to trusted internal mirrors only.
  • Run Python test suites inside isolated containers without credentials or write access to production resources.
bash
# Configuration example: verify Python version and skip vulnerable test on legacy systems
python3 --version
python3 -m test -x test_multibytecodec

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPython

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.85%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Apache Bookkeeper Thread

  • Apache Bookkeeper Thread

  • Apache Mina Thread

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA Report

  • NetApp Security Advisory
  • Vendor Resources
  • Python Issue Tracker Report

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • Oracle Security Alert
  • Related CVEs
  • CVE-2025-15366: Python imaplib Module RCE Vulnerability

  • CVE-2021-3177: Python Buffer Overflow RCE Vulnerability

  • CVE-2024-9287: Python venv RCE Vulnerability

  • CVE-2025-50817: Python-Future Module RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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