Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2021-27135

CVE-2021-27135: Invisible-island Xterm RCE Vulnerability

CVE-2021-27135 is a remote code execution vulnerability in Invisible-island Xterm caused by crafted UTF-8 combining characters. Attackers can exploit this to execute code or crash systems. Learn the technical details.

Published: February 25, 2026

CVE-2021-27135 Overview

CVE-2021-27135 is a critical vulnerability affecting xterm, the standard terminal emulator for the X Window System. The flaw exists in versions prior to Patch #366 and allows remote attackers to execute arbitrary code or cause a denial of service (segmentation fault) via a crafted UTF-8 combining character sequence. This vulnerability poses significant risk as terminal emulators are ubiquitous in Unix and Linux environments, potentially exposing systems to compromise through malicious terminal escape sequences.

Critical Impact

Remote attackers can achieve arbitrary code execution or cause denial of service on affected systems by sending specially crafted UTF-8 combining character sequences to the xterm terminal emulator, requiring no authentication or user interaction.

Affected Products

  • Invisible-island xterm (versions prior to Patch #366)
  • Debian Linux 9.0
  • Fedora 33

Discovery Timeline

  • February 10, 2021 - CVE-2021-27135 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-27135

Vulnerability Analysis

This vulnerability stems from improper handling of UTF-8 combining character sequences within xterm's character processing routines. When xterm receives specially crafted input containing malformed UTF-8 combining characters, the terminal emulator fails to properly validate and process these sequences, leading to memory corruption. The attack can be triggered remotely when a user views malicious content in their terminal - such as through cat-ing a file, displaying output from a network connection, or processing escape sequences from an untrusted source.

The network attack vector is particularly concerning as terminal content often comes from remote sources (SSH sessions, curl output, log files from remote systems). An attacker could embed malicious UTF-8 sequences in files, web responses, or any content that might be displayed in an xterm session.

Root Cause

The root cause lies in xterm's UTF-8 character handling code, specifically in how combining characters are processed and stored. Combining characters in Unicode are meant to modify the preceding base character (e.g., adding accents or diacritical marks). The vulnerability occurs when the code fails to properly bounds-check or validate these combining character sequences, leading to memory safety violations. The fix was implemented in xterm version xterm-365d, addressing the improper validation of UTF-8 combining character sequences in the character processing functions.

Attack Vector

The attack exploits the UTF-8 combining character handling mechanism. An attacker crafts a malicious sequence of UTF-8 bytes that, when processed by xterm's character rendering routines, triggers a memory corruption condition. This can manifest as:

  1. Remote Code Execution: The memory corruption can be leveraged to overwrite critical memory structures, potentially allowing the attacker to redirect program execution to attacker-controlled code
  2. Denial of Service: The improper memory access causes a segmentation fault, crashing the terminal session

The attack requires no privileges or user interaction beyond the victim viewing the malicious content in their terminal.

c
/* $XTermId: button.c,v 1.631 2021/02/04 01:00:26 tom Exp $ */
+/* $XTermId: button.c,v 1.634 2021/02/09 23:04:41 tom Exp $ */

/*
 * Copyright 1999-2020,2021 by Thomas E. Dickey

Source: GitHub Xterm Commit Update

The patch updated multiple source files including button.c with fixes dated February 9, 2021, addressing the UTF-8 combining character handling issues.

Detection Methods for CVE-2021-27135

Indicators of Compromise

  • Unexpected xterm process crashes or segmentation faults in system logs
  • Presence of files or network traffic containing anomalous UTF-8 combining character sequences
  • Core dumps from xterm processes indicating memory corruption
  • Unusual terminal behavior or display artifacts when processing text content

Detection Strategies

  • Monitor system logs for xterm segmentation fault messages or crash reports
  • Implement endpoint detection rules to identify exploitation attempts targeting terminal emulators
  • Deploy SentinelOne agents to detect memory corruption exploitation patterns in terminal processes
  • Audit xterm versions across the environment to identify unpatched instances

Monitoring Recommendations

  • Enable crash reporting and analysis for terminal emulator processes
  • Monitor for suspicious file content containing malformed UTF-8 sequences being accessed by terminal processes
  • Track xterm process terminations and correlate with potential attack indicators
  • Implement network monitoring for potential delivery of malicious payloads targeting terminal applications

How to Mitigate CVE-2021-27135

Immediate Actions Required

  • Update xterm to Patch #366 or later immediately on all affected systems
  • Verify all Linux distributions have applied vendor-provided security updates for xterm
  • Consider temporarily using alternative terminal emulators on critical systems until patching is complete
  • Review and restrict network sources of terminal content where possible

Patch Information

The vulnerability is resolved in xterm Patch #366 (version xterm-365d and later). The fix was committed to the xterm source repository and addresses the improper handling of UTF-8 combining character sequences. Multiple Linux distributions have released security updates:

  • Debian: Security advisory available via Debian LTS Announcement February 2021
  • Fedora: Updates distributed through Fedora Package Announcement
  • Red Hat: Advisory and bug tracking at Red Hat CVE-2021-27135 Advisory
  • SUSE: Bug tracked at SUSE Bug Report #1182091
  • Gentoo: Security advisory Gentoo GLSA 202208-22

The authoritative patch information is available at the Xterm Logs - Invisible Island page.

Workarounds

  • Use alternative terminal emulators that are not affected by this vulnerability until patching is possible
  • Avoid displaying untrusted content in xterm sessions (files from unknown sources, untrusted network output)
  • Implement input sanitization at the application layer before displaying content in terminals
  • Consider containerizing terminal sessions to limit potential blast radius
bash
# Check current xterm version
xterm -version

# Update xterm on Debian/Ubuntu systems
sudo apt-get update && sudo apt-get install --only-upgrade xterm

# Update xterm on Fedora systems
sudo dnf update xterm

# Update xterm on RHEL/CentOS systems
sudo yum update xterm

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechInvisible Island Xterm

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.73%

  • 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
  • Full Disclosure Post May 2021

  • OpenWall OSS-Security Discussion

  • Red Hat CVE-2021-27135 Advisory

  • Red Hat Bug Report #1927559

  • SUSE Bug Report #1182091

  • Debian LTS Announcement February 2021

  • Fedora Package Announcement

  • Hacker News Discussion #26524650

  • Gentoo GLSA 202208-22

  • OpenWall OSS-Security Discussion

  • OpenWall OSS-Security Discussion
  • Vendor Resources
  • GitHub Xterm Commit Update

  • Xterm Logs - Invisible Island
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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