Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local unprivileged shell
-
DeliveryInvoke screen hardcopy to controlled path
-
ExploitAtomically swap target for root-owned symlink
-
ExecutionWin TOCTOU race during privileged open
-
PersistWrite arbitrary file as root
-
ImpactEscalate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (CERT-PL).
CVSS VectorVendor: CERT-PL
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
encoding.c in GNU Screen through 4.8.0 allows remote attackers to cause a denial of service (invalid write access and ap
GNU screen before 4.5.1 allows local users to modify arbitrary files and consequently gain root privileges by leveraging
socket.c in GNU Screen through 4.9.0, when installed setuid or setgid (the default on platforms such as Arch Linux and F
A buffer overflow was found in the way GNU Screen before 4.8.0 treated the special escape OSC 49. Rated critical severit
Local buffer overflow in GNU Screen before 5.0.2 can crash the terminal multiplexer when a user starts screen in an envi
Use-after-free in GNU Screen's UTF-8 combining-character handling can corrupt the heap and, per the reporter, be leverag
EUVD-2026-136483
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB