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-2025-46802

CVE-2025-46802: PTY Privilege Escalation Vulnerability

CVE-2025-46802 is a privilege escalation vulnerability affecting PTY handling where mode 666 briefly allows unauthorized users to connect to screen sessions. This article covers technical details, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-46802 Overview

CVE-2025-46802 is a race condition vulnerability in GNU Screen where the pseudo-terminal (PTY) is temporarily set to mode 666 (world-readable and world-writable permissions) during session initialization. This insecure permission window allows any local user on the system to connect to the screen session, potentially leading to unauthorized access to terminal sessions and sensitive information.

Critical Impact

Local attackers can exploit the brief window of insecure PTY permissions to hijack or eavesdrop on screen sessions belonging to other users on the system.

Affected Products

  • GNU Screen (specific affected versions not yet confirmed)
  • Linux distributions using affected GNU Screen versions
  • SUSE Linux products (as indicated by vendor bug report)

Discovery Timeline

  • 2025-05-12 - Vulnerability disclosed via Openwall OSS Security mailing list
  • 2025-05-26 - CVE-2025-46802 published to NVD
  • 2025-05-28 - Last updated in NVD database

Technical Details for CVE-2025-46802

Vulnerability Analysis

This vulnerability falls under CWE-732 (Incorrect Permission Assignment for Critical Resource). The root cause is a Time-of-Check Time-of-Use (TOCTOU) race condition in how GNU Screen initializes pseudo-terminal devices.

When a new screen session is created, the PTY device file is briefly set to mode 666, which grants read and write permissions to all users on the system. While this permissive state is intended to be temporary before proper permissions are applied, the window of opportunity creates a race condition that attackers can exploit.

The local attack vector requires the attacker to have an existing account on the target system. The vulnerability requires precise timing and some user interaction to exploit successfully, which moderates the overall risk. However, successful exploitation could result in high confidentiality and integrity impact as attackers gain access to terminal session content and can potentially inject commands.

Root Cause

The vulnerability stems from improper permission assignment during PTY allocation in GNU Screen. The application temporarily sets overly permissive file permissions (mode 666) on the pseudo-terminal device before restricting them to appropriate levels. This creates a window during which any local user can access the PTY device file.

Attack Vector

The attack requires local access to the target system. An attacker must monitor for new screen session creation and quickly connect to the PTY device while it still has world-accessible permissions. The attack flow typically involves:

  1. The attacker monitors the /dev/pts/ directory for new PTY devices being created
  2. When a victim user starts a new screen session, the PTY is briefly created with mode 666
  3. The attacker races to open the PTY device before permissions are restricted
  4. If successful, the attacker can read session output or inject input into the victim's terminal

This is a classic TOCTOU race condition where the time between permission assignment and permission correction creates an exploitable window. Technical details are available in the Openwall OSS Security advisory.

Detection Methods for CVE-2025-46802

Indicators of Compromise

  • Unexpected connections to screen sessions from unauthorized users
  • Anomalous file access patterns in /dev/pts/ directory by non-owning users
  • Log entries showing multiple users accessing the same PTY device
  • Unusual process activity monitoring PTY device creation

Detection Strategies

  • Monitor for processes repeatedly scanning /dev/pts/ for new device files
  • Implement audit logging on PTY device file access using auditd
  • Alert on screen sessions with unexpected attached users or unusual connection patterns
  • Deploy file integrity monitoring on critical terminal device directories

Monitoring Recommendations

  • Configure auditd rules to log access attempts to PTY devices by non-owning users
  • Implement real-time monitoring of screen session attachment events
  • Review system logs for patterns indicating race condition exploitation attempts
  • Monitor for scripts or tools designed to exploit PTY permission races

How to Mitigate CVE-2025-46802

Immediate Actions Required

  • Review and update GNU Screen to the latest available version from your distribution
  • Restrict local system access to trusted users only
  • Consider using alternative terminal multiplexers (tmux) as a temporary measure
  • Monitor the SUSE bug report for patch availability

Patch Information

Patch information is currently being tracked by vendors. Administrators should monitor the following resources for updates:

  • SUSE Bug Report for CVE-2025-46802
  • Openwall OSS Security Discussion
  • Distribution-specific security advisories

Workarounds

  • Limit local shell access to only essential users who require it
  • Consider implementing mandatory access controls (SELinux/AppArmor) to restrict PTY access patterns
  • Use tmux as an alternative terminal multiplexer until patches are available
  • Implement additional monitoring and alerting for screen session access anomalies
bash
# Example auditd rule to monitor PTY device access
# Add to /etc/audit/rules.d/screen-pty.rules
-w /dev/pts/ -p rwa -k pty_access
-a always,exit -F arch=b64 -S openat -F dir=/dev/pts/ -F success=1 -k pty_open

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechN/A

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/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
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-732
  • Technical References
  • SUSE Bug Report CVE-2025-46802

  • Openwall OSS Security Email
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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