| CVE ID | CVE-2026-71409 |
| Publication date | 26 November 2026 |
| Vendor | GNU |
| Product | Screen |
| Vulnerable versions | All before 5.0.2 |
| Vulnerability type (CWE) | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (CWE-120) |
| Report source | Report to CERT Polska |
| CVE ID | CVE-2026-71410 |
| Publication date | 26 November 2026 |
| Vendor | GNU |
| Product | Screen |
| Vulnerable versions | All before 5.0.2 |
| Vulnerability type (CWE) | Use After Free (CWE-416) |
| Report source | Report to CERT Polska |
| CVE ID | CVE-2026-71411 |
| Publication date | 26 November 2026 |
| Vendor | GNU |
| Product | Screen |
| Vulnerable versions | All before 5.0.2 |
| Vulnerability type (CWE) | Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367) |
| Report source | Report to CERT Polska |
Description
CERT Polska has received a report about vulnerabilities in GNU Screen software and participated in coordination of their disclosure.
The vulnerability CVE-2026-71409: GNU screen is vulnerable to a global buffer overflow in the SendCmdMessage() function within attacher.c. Due to the use of an unchecked sprintf() call when appending the STY environment variable to the global SocketPath buffer. The vulnerability occurs when GNU screen is executed in an environment where the HOME and STY environment variables contain attacker-controlled values that are sufficiently long. Successful exploitation may result in an application crash or potentially arbitrary code execution.
The vulnerability CVE-2026-71410: GNU Screen is vulnerable to a Use-After-Free in the utf8_handle_comb() function in encoding.c. Due to improper error handling during memory allocation failure, the global combchars pointer is freed but not reset to NULL. When a subsequent combining Unicode character arrives at the terminal, the function dereferences the freed pointer. An attacker who controls terminal content sent to the screen session, such as via a rogue SSH server or crafted escape sequences, can exploit this vulnerability to perform heap grooming and achieve arbitrary code execution.
The vulnerability CVE-2026-71411: 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
These issues were fixed in version 5.0.2
Credits
We thank Michał Majchrowicz and Marcin Wyczechowski from AFINE Team for the responsible vulnerability report.
More about the coordinated vulnerability disclosure process at CERT Polska can be found at https://cert.pl/en/cvd/.