Skip to main content

GNU Screen CVE-2026-71411

| EUVDEUVD-2026-136483 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-11-26 CERT-PL
5.5
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local unprivileged shell
  2. Delivery
    Invoke screen hardcopy to controlled path
  3. Exploit
    Atomically swap target for root-owned symlink
  4. Execution
    Win TOCTOU race during privileged open
  5. Persist
    Write arbitrary file as root
  6. Impact
    Escalate to root privileges

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Requires: (1) GNU Screen installed setuid-root so the effective UID at file open is root while the permission check uses the real UID; (2) local shell access as an unprivileged user on that host; (3) use of the hardcopy file handler with an attacker-controllable target path; and (4) winning the TOCTOU race by atomically replacing that path with a symlink to a root-owned file between the real-UID permission check and the effective-UID open. LIMITING FACTORS: exploitation is local-only (no remote path) and probabilistic (the race window must be won, typically needing repeated attempts); it does not apply where screen is not installed setuid-root (many modern distributions no longer ship screen setuid), and it is fixed in version 5.0.2. No user interaction by a victim is required.

Impact

This is a legitimate but bounded local privilege-escalation issue, not a drop-everything emergency. The CVSS 4.0 vector (CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N) scores 5.5 (medium): the attack vector is local (AV:L), requires a timing/attack precondition (AT:P, reflecting the TOCTOU race window), and needs no prior privileges or user interaction, while impact falls entirely on the subsequent system (SC:H/SI:H/SA:H) because a successful write occurs as root - consistent with CWE-367 and the description. The vuln.today Decision label is 'this_month' (not act_now/emergency), aligning with a medium-severity local flaw. No EPSS score was supplied, the CVE is NOT in CISA KEV (no confirmed active exploitation), and no public exploit was provided - so there is no exploit-maturity signal pulling urgency upward. The realistic risk is high ON HOSTS WHERE screen is installed setuid-root and untrusted local users have shell access (multi-user servers, shared build/CI hosts), and negligible elsewhere. Note a data conflict: the sole CERT-PL reference URL points to CVE-2026-71409, not CVE-2026-71411 - verify the advisory actually covers this CVE. I also independently assess the real impact as higher than 5.5 in CVSS 3.1 terms because arbitrary root file-write yields full system compromise (scope change); see assessed vector.

Exploit ScenarioDerived

An unprivileged local user on a system where GNU Screen is installed setuid-root invokes the hardcopy feature targeting a path they control; after screen checks write permission against the real UID but before it opens the file under the effective (root) UID, the attacker atomically replaces the path with a symlink to a sensitive root-owned file (e.g. a cron file or /etc/passwd), causing root-privileged content to be written there. Repeated attempts win the race, yielding arbitrary file write as root and full privilege escalation. No public exploit was identified at time of analysis, and exploitation is probabilistic because it depends on winning the TOCTOU window.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 26, 2026

Local privilege escalation in GNU Screen's hardcopy file handler lets an unprivileged local user write to arbitrary root-owned system files when the screen binary is installed setuid-root, because the write-permission check is performed with the real UID while the file is subsequently opened with the effective (root) UID. All GNU Screen releases prior to 5.0.2 are affected (CPE cpe:2.3:a:gnu:screen); the vendor assesses the issue at CVSS 5.5, while our independent assessment rates it higher (CVSS 3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H) given the scope change and root-level write impact. Exploitation is local-only and probabilistic, requiring the attacker to win a TOCTOU race by atomically replacing the target path with a symlink, and it is only reachable on hosts where screen is actually shipped setuid-root; no public exploit code or CISA KEV entry was identified at time of analysis, and remediation is available in version 5.0.2.

RemediationAI

Upgrade GNU Screen to version 5.0.2, the release in which this issue is fixed; the two upstream fixes on the screen-v5 branch are commit 15a1481ad85309835c466a49f99a55537a78d596 (https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=15a1481ad85309835c466a49f99a55537a78d596) and commit 3dea5ff20c58ad497062d094b6a9b80a7535a7db (https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=3dea5ff20c58ad497062d094b6a9b80a7535a7db), with vendor context at https://savannah.gnu.org/git/?group=screen. For hosts where an immediate upgrade is not possible, the exposure is gated entirely on the setuid bit: removing it from the screen binary (chmod u-s) eliminates the effective-UID-is-root condition this attack depends on, at the cost of losing multi-user screen sessions and the ability to attach to other users' sessions - screen then only works for the invoking user. That trade-off is worth taking on servers and multi-tenant hosts where shared sessions are not actually used, and it should be verified after any package reinstall or upgrade that the bit has not been restored before the 5.0.2 patch is in place. Prioritise patching or de-setuid-ing hosts where unprivileged local shell access is broadly available, and treat this as a scheduled-monthly fix rather than an emergency.

Affected VersionsENISA

screen 0 <5.0.2

Affected Packages

euvd screen fix: 5.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

GNU Screen is a terminal multiplexer that is historically installed setuid-root so that multiple users can attach to and share the same screen session. In a setuid-root process the real UID identifies the invoking user while the effective UID is root, and the hardcopy handler (the mechanism that dumps the current screen contents to a file) mixed these two identities: it validated the caller's write permission on the destination path using the real UID, then opened that same path using the effective UID. This is a classic time-of-check/time-of-use flaw (CWE-367). Between the real-UID access check and the effective-UID open, a local attacker can atomically replace the previously validated path with a symbolic link pointing at a root-owned file, and the subsequent privileged open follows the link, granting arbitrary file writes as root. The trigger and mechanism are explicitly described by the reporting source; what the sources do not quantify is the width of the race window, so the practical reliability of winning the swap is not confirmed beyond the assessment that repeated attempts may be needed. The assessed CVSS 3.1 vector applies a scope change (S:C), reflecting that the compromised component writes outside its own security authority into files owned by other parts of the system, with high confidentiality, integrity and availability impact on that subsequent system. The vendor-published CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N with only subsequent-system impact) is lower and differs on attack complexity, attack requirements and privileges required; our assessment treats the attacker as an authenticated local user with no victim interaction.

Know when Screen gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CERT-PL) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
vuln.today AI 7.8 HIGH

Local unprivileged account (AV:L/PR:L), TOCTOU timing race gives AC:H, and arbitrary root file-write crosses a security boundary (S:C) yielding full system compromise (C:H/I:H/A:H).

3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

DescriptionCVE.org

GNU Screen is vulnerable to a Time-of-Check/Time-of-Use (TOCTOU) race condition in the hardcopy file handler. Due to checking write permissions using the real user ID and subsequently opening the file using the effective user ID, a local unprivileged attacker can atomically replace the target path with a symbolic link pointing to an arbitrary system file. Successfully exploiting this race condition allows the attacker to write to arbitrary files with root privileges, leading to local privilege escalation

This issue was fixed in version 5.0.2.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
common terminal multiplexer; exploitable only on setuid-root installs
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy