Integer signedness error in ansi.c for GNU screen 4.0.1 and earlier, and 3.9.15 and earlier, allows local users to execute arbitrary code via a large number of ";" (semicolon) characters in escape sequences, which leads to a buffer overflow.
encoding.c in GNU Screen through 4.8.0 allows remote attackers to cause a denial of service (invalid write access and application crash) or possibly have unspecified other impact via a crafted UTF-8 character sequence.
A buffer overflow was found in the way GNU Screen before 4.8.0 treated the special escape OSC 49. Specially crafted output, or a special program, could corrupt memory and crash Screen or possibly have unspecified other impact.
GNU screen before 4.5.1 allows local users to modify arbitrary files and consequently gain root privileges by leveraging improper checking of logfile permissions.
DISPUTED GNU screen 4.0.3 allows local users to unlock the screen via a CTRL-C sequence at the password prompt. NOTE: multiple third parties report inability to reproduce this issue.
socket.c in GNU Screen through 4.9.0, when installed setuid or setgid (the default on platforms such as Arch Linux and FreeBSD), allows local users to send a privileged SIGHUP signal to any PID, causing a denial of service or disruption of the target process.
A security flaw was found in the screen utility in the way it used to create one particular temporary file. An attacker could use this flaw to perform a symlink attack.
References: https://bugs.launchpad.net/ubuntu/+source/screen/+bug/315993 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521123
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.
This issue was fixed in version 5.0.2.
Buffer overflow in the Braille module for GNU screen 3.9.11, when HAVEBRAILLE is defined, allows local users to execute arbitrary code.
Multiple unspecified vulnerabilities in the "utf8 combining characters handling" (utf8handlecomb function in encoding.c) in screen before 4.0.3 allows user-assisted attackers to cause a denial of service (crash or hang) via certain UTF8 sequences.
A minor information leak when running Screen with setuid-root privileges allows unprivileged users to deduce information about a path that would otherwise not be available.
Affected are older Screen versions, as well as version 5.0.0.
-------- Forwarded Message -------- Subject: GNU Screen v.5.0.3 is released Date: Wed, 25 Nov 2026 00:27:46 +0100 From: Alex Naumov <alexandernaumov () opensuse org> To: screen-devel () gnu org, screen-users () gnu org, info-gnu () gnu org
I'm glad to announce the new GNU Screen release.
List of fixes: Fix use-after-free in FreeWindow() when a window has several Fix uninitialized buffer with padding escapes Restore rendition attribute modifiers (bug #67154) Fix off-by-one in resize CheckMaxSize guard Encoding fixes Manpage: correct rendition syntax and examples Security: add SocketPath size check
Release (official tarball) will be available soon for download: https://ftp.gnu.org/pub/gnu/screen/
Please report any bugs or regressions. Thanks to everyone who contributed to this release.
Special thanks to Peter Dey who helped me with this release.
Cheers, Alex