Time-of-check Time-of-use (TOCTOU) Race Condition leading to privilege escalation in GNU screen
- CVE-2026-71411
- GHSA-666m-4q36-cx8m
- EUVD-2026-136483
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.
Text from the CVE.org record.
Recommendation
GNU Screen
- If you run a version before 5.0.2update to 5.0.2 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
GNU Screen
Affected versions Fixed in before 5.0.2 5.0.2
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.