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
    • 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-2023-1523

CVE-2023-1523: Canonical Snapd RCE Vulnerability

CVE-2023-1523 is a remote code execution flaw in Canonical Snapd allowing malicious snaps to execute arbitrary commands outside the sandbox on virtual consoles. This article covers technical details, affected versions, and mitigations.

Published: February 11, 2026

CVE-2023-1523 Overview

CVE-2023-1523 is a critical sandbox escape vulnerability in Canonical Snapd that allows a malicious snap application to execute arbitrary commands outside of its sandbox environment. The vulnerability exploits the TIOCLINUX ioctl request to inject contents into the input of the controlling terminal, enabling command execution after the snap exits. This represents a complete bypass of the snap confinement security model.

Importantly, this vulnerability only affects snaps running on virtual consoles (TTY). Graphical terminal emulators such as xterm, gnome-terminal, and similar applications are not affected by this vulnerability.

Critical Impact

A malicious snap can escape its sandbox and execute arbitrary commands with the privileges of the user running the snap on the host system, completely undermining the snap confinement security model.

Affected Products

  • Canonical Snapd (all versions prior to patch)
  • Ubuntu Linux 16.04 ESM
  • Ubuntu Linux 18.04 ESM
  • Ubuntu Linux 20.04 LTS
  • Ubuntu Linux 22.04 LTS
  • Ubuntu Linux 22.10
  • Ubuntu Linux 23.04

Discovery Timeline

  • 2023-09-01 - CVE-2023-1523 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-1523

Vulnerability Analysis

This vulnerability is classified as CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), commonly known as injection. The root issue lies in how snapd handles terminal input/output when snaps are executed on virtual consoles.

The TIOCLINUX ioctl is a Linux-specific ioctl that provides various terminal-related functions. When a snap application is executed on a virtual console, it can leverage this ioctl to inject arbitrary data into the terminal's input buffer. This injected data is then interpreted as user input after the snap process terminates, allowing for arbitrary command execution outside the sandboxed environment.

The attack requires the snap to be run on a virtual console (such as /dev/tty1 through /dev/tty6), which limits exploitation to server environments, headless systems, or scenarios where users interact with the system through direct console access rather than graphical terminal emulators.

Root Cause

The vulnerability stems from insufficient restrictions on the TIOCLINUX ioctl within the snap sandbox. The snap confinement system did not properly block or filter this ioctl call, which provides the capability to inject characters into the terminal input queue. This oversight allows confined applications to influence the parent shell's input stream, effectively bypassing the isolation boundary that snaps are designed to enforce.

Attack Vector

An attacker can exploit this vulnerability by creating and distributing a malicious snap package. When a user installs and runs this snap from a virtual console, the malicious code within the snap uses the TIOCLINUX ioctl with the TIOCSTI (Terminal I/O Control Simulate Terminal Input) function to inject characters into the terminal's input buffer.

The injected payload typically consists of shell commands followed by a newline character. After the snap exits and returns control to the user's shell, the injected commands are interpreted and executed as if the user had typed them directly. This allows the attacker to execute arbitrary commands with the full privileges of the user running the snap, completely escaping the snap sandbox.

Detection Methods for CVE-2023-1523

Indicators of Compromise

  • Unexpected or suspicious commands appearing in shell history that the user did not execute
  • Unusual ioctl system calls targeting TIOCLINUX or TIOCSTI from snap-confined processes
  • Evidence of snap processes interacting with /dev/tty* devices in unexpected ways

Detection Strategies

  • Monitor auditd logs for ioctl syscalls with TIOCLINUX requests originating from snap-confined processes
  • Implement seccomp profile monitoring to detect attempts to use restricted ioctl calls
  • Review snap execution logs for processes running on virtual consoles rather than graphical terminals
  • Deploy endpoint detection rules to alert on terminal input injection patterns

Monitoring Recommendations

  • Configure system auditing to log all ioctl syscalls from snap-related processes
  • Implement alerting for shell commands executed immediately following snap termination on virtual consoles
  • Monitor for newly installed or updated snap packages from untrusted sources
  • Review bash/zsh history files for commands that users did not initiate

How to Mitigate CVE-2023-1523

Immediate Actions Required

  • Update snapd to the latest patched version immediately using sudo snap refresh snapd
  • Avoid running untrusted snaps from virtual consoles until the patch is applied
  • Review installed snap packages and remove any from untrusted sources
  • Consider using graphical terminal emulators instead of virtual consoles when running snap applications

Patch Information

Canonical has released a security patch to address this vulnerability. The fix is available through the Snapd GitHub Pull Request #12849 and has been distributed through the standard Ubuntu security update channels. Users should apply Ubuntu Security Notice USN-6125-1 to remediate this vulnerability.

To update snapd on affected systems, run:

bash
sudo snap refresh snapd

For Ubuntu systems, ensure security updates are enabled and run:

bash
sudo apt update && sudo apt upgrade

Workarounds

  • Run snap applications only within graphical terminal emulators (xterm, gnome-terminal, konsole, etc.) which are not affected by this vulnerability
  • Implement strict snap installation policies to only allow snaps from trusted publishers
  • Use AppArmor or seccomp filters to block TIOCLINUX ioctl calls from snap processes if patching is not immediately possible
  • Restrict direct virtual console access on multi-user systems
bash
# Example: Check current snapd version
snap version

# Update snapd to latest patched version
sudo snap refresh snapd

# Verify snap installations from trusted sources only
snap list --all

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCanonical

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-74
  • Technical References
  • CVE-2023-1523 Details

  • OSS-Security Mailing List Post

  • Ubuntu Security Notice USN-6125-1
  • Vendor Resources
  • GitHub Snapd Pull Request
  • Related CVEs
  • CVE-2025-5054: Canonical Apport Race Condition Vulnerability

  • CVE-2022-3328: Canonical Snapd Race Condition Flaw

  • CVE-2023-1326: Canonical Apport Privilege Escalation Flaw
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