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

Published Nov 26, 2026
·
Updated

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.

Affected Software

1 affected component
GNU GNU screen<5.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GNU Screen to a version that resolves this vulnerability.

    Fixed in 5.0.2

Event History

Nov 26, 2026
CVE Published
via MITRE·01:22 PM
Data Sourced
via MITRE·01:22 PM
DescriptionWeakness

Frequently Asked Questions

1

Who can exploit this issue?

A local unprivileged attacker can exploit the race condition. Successful exploitation can allow writing to arbitrary system files with root privileges, resulting in local privilege escalation.

2

What must an attacker do to exploit it?

The attacker must win a timing race in the hardcopy file handler by atomically replacing the target path with a symbolic link to an arbitrary system file after permissions are checked and before the file is opened.

3

Which versions contain the fix?

The issue was fixed in GNU Screen version 5.0.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203