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

CVE-2025-23395: Screen 5.0.0 Privilege Escalation Flaw

CVE-2025-23395 is a privilege escalation vulnerability in Screen 5.0.0 that allows unprivileged users to create root-owned files in arbitrary locations and escalate privileges. This article covers technical details.

Updated: January 22, 2026

CVE-2025-23395 Overview

A local privilege escalation vulnerability exists in GNU Screen version 5.0.0 when running with setuid-root privileges. The application fails to properly drop privileges while operating on user-supplied paths, allowing unprivileged users to create files in arbitrary locations with root ownership. This vulnerability can be exploited to achieve full root privileges on affected systems.

Critical Impact

Unprivileged local users can escalate to root privileges by creating arbitrary files with root ownership and leveraging PTY logging functionality to write controlled data to sensitive system locations.

Affected Products

  • GNU Screen version 5.0.0
  • Systems running Screen 5.0.0 with setuid-root privileges enabled
  • Linux distributions with setuid-root Screen installations

Discovery Timeline

  • 2025-05-26 - CVE-2025-23395 published to NVD
  • 2025-05-28 - Last updated in NVD database

Technical Details for CVE-2025-23395

Vulnerability Analysis

This vulnerability is classified as CWE-271 (Privilege Dropping / Lowering Errors), representing a failure to properly drop elevated privileges before performing operations on user-controlled input. When Screen 5.0.0 is installed with setuid-root privileges, it retains root permissions while processing user-supplied file paths for logging functionality.

The core issue stems from the PTY (pseudo-terminal) logging mechanism in Screen. When a user specifies a log file path, the application creates the file with root ownership, the invoking user's real group ownership, and file mode 0644. Because any data written to the Screen PTY is subsequently logged to this file, an attacker can write arbitrary content to files owned by root in sensitive system locations.

Root Cause

The vulnerability originates from improper privilege management in Screen's file creation routines. When handling the logging functionality, Screen fails to drop its elevated setuid-root privileges before accessing user-supplied paths. This violates the principle of least privilege and allows the setuid-root context to persist during file operations that should be performed with the user's actual privilege level.

The design flaw enables unprivileged users to:

  1. Specify arbitrary file paths for log output
  2. Have those files created with root ownership
  3. Write controlled content via PTY input to root-owned files

Attack Vector

This is a local attack vector requiring authenticated access to the target system. An attacker with low-privilege local access can exploit this vulnerability without user interaction by:

  1. Invoking Screen with the logging feature enabled, specifying a path to a sensitive system file (such as /etc/cron.d/ or similar privileged directories)
  2. Creating a new file with root ownership at the specified location
  3. Writing malicious content through the PTY interface that gets logged to the root-owned file
  4. Triggering execution of the malicious content through system mechanisms (e.g., cron execution)

The attack does not require any special conditions beyond having a setuid-root Screen binary installed, which is a common configuration on many Linux distributions.

Detection Methods for CVE-2025-23395

Indicators of Compromise

  • Unexpected files appearing in sensitive system directories (e.g., /etc/cron.d/, /etc/sudoers.d/) with root ownership but unusual group ownership matching non-privileged users
  • Files in privileged locations with file mode 0644 created at times correlating with Screen process execution
  • Unusual Screen process activity from non-privileged user accounts
  • Audit logs showing Screen processes accessing paths outside normal user directories

Detection Strategies

  • Monitor file creation events in privileged directories using auditd rules to detect files created with root ownership by non-root processes
  • Implement file integrity monitoring (FIM) on critical system directories such as /etc/cron.d/, /etc/sudoers.d/, and /etc/profile.d/
  • Deploy endpoint detection rules to alert on Screen processes creating files outside of user home directories
  • Review system logs for patterns indicating privilege escalation attempts via Screen

Monitoring Recommendations

  • Configure auditd to monitor setuid binary execution, particularly for Screen with parameters indicating log file paths
  • Establish baseline behavior for Screen usage patterns and alert on anomalies
  • Monitor for new scheduled tasks or configuration files appearing in system directories
  • Implement real-time alerting for file creation in sensitive locations with mismatched ownership patterns

How to Mitigate CVE-2025-23395

Immediate Actions Required

  • Remove setuid-root permissions from Screen 5.0.0 binary immediately using chmod u-s /usr/bin/screen
  • Audit systems for unauthorized files created in privileged directories with suspicious ownership patterns
  • Update to a patched version of Screen when available from your distribution vendor
  • Restrict access to Screen binary to trusted users only until patching is complete

Patch Information

Consult your Linux distribution vendor for security updates addressing CVE-2025-23395. SUSE has published a bug report tracking this issue. The vulnerability affects Screen version 5.0.0 specifically when installed with setuid-root privileges.

For technical details, see the SUSE Bug Report CVE-2025-23395 and the OpenWall OSS-Security Discussion.

Workarounds

  • Remove the setuid bit from the Screen binary: chmod u-s /usr/bin/screen (note: this may impact multi-user screen sharing functionality)
  • Configure system policies to prevent Screen from writing to sensitive directories using mandatory access control frameworks like SELinux or AppArmor
  • Implement file system restrictions using chattr on critical directories to prevent unauthorized file creation
  • Deploy application whitelisting to control which users can execute the Screen binary
bash
# Remove setuid-root from Screen binary
chmod u-s /usr/bin/screen

# Verify Screen permissions (should show no 's' in permissions)
ls -la /usr/bin/screen

# Optional: Restrict Screen execution to specific group
chown root:screenusers /usr/bin/screen
chmod 750 /usr/bin/screen

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechScreen

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:P/PR:L/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-271
  • Technical References
  • SUSE Bug Report CVE-2025-23395

  • OpenWall OSS-Security Discussion
  • Related CVEs
  • CVE-2025-46805: GNU Screen Race Condition 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