CVE-2026-71411

Time-of-check Time-of-use (TOCTOU) Race Condition leading to privilege escalation in GNU screen

Published Nov 26, 2026 CVSS 4.0 · 5.5 Medium EPSS n/a KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title Time-of-check Time-of-use (TOCTOU) Race Condition leading to privilege escalation in GNU screen
First Time appeared Gnu
Gnu screen
Weaknesses CWE-367
CPEs cpe:2.3:a:gnu:screen:*:*:*:*:*:*:*:*
Vendors & Products Gnu
Gnu screen
References
Metrics cvssV4_0

{'score': 5.5, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
CERT-PL
Published
Updated
Nov 26, 2026, 1:22 PM
Reserved
Aug 6, 2026, 12:43 PM

No data.