CVE-2026-71411 PUBLISHED

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

Assigner: CERT-PL
Reserved: 06.08.2026 Published: 26.11.2026 Updated: 26.11.2026

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.

Metrics

CVSS 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
CVSS Score: 5.5

Product Status

Vendor GNU
Product Screen
Versions Default: unaffected
  • affected from 0 to 5.0.2 (excl.)

Credits

  • Michał Majchrowicz (AFINE Team) finder
  • Marcin Wyczechowski (AFINE Team) finder

References

Problem Types

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

Impacts

  • CAPEC-233 Privilege Escalation