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

State
Published
Severity
5.5 Medium
Published
Nov 26, 2026
Updated
Nov 26, 2026
Reserved
Aug 6, 2026

Read the record on cve.org

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.

ProductVersions
Screen GNUbefore 5.0.2 Affected

Weaknesses

  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.