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.
Published: 2026-11-26
Score: 5.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 26 Nov 2026 13:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: CERT-PL

Published:

Updated: 2026-11-26T13:22:26.641Z

Reserved: 2026-08-06T12:43:52.381Z

Link: CVE-2026-71411

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-26T14:17:37.383

Modified: 2026-11-26T14:17:37.383

Link: CVE-2026-71411

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-26T16:00:09Z

Weaknesses