Screen
Monthly
Local privilege escalation in GNU Screen's hardcopy file handler lets an unprivileged local user write to arbitrary root-owned system files when the screen binary is installed setuid-root, because the write-permission check is performed with the real UID while the file is subsequently opened with the effective (root) UID. All GNU Screen releases prior to 5.0.2 are affected (CPE cpe:2.3:a:gnu:screen); the vendor assesses the issue at CVSS 5.5, while our independent assessment rates it higher (CVSS 3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H) given the scope change and root-level write impact. Exploitation is local-only and probabilistic, requiring the attacker to win a TOCTOU race by atomically replacing the target path with a symlink, and it is only reachable on hosts where screen is actually shipped setuid-root; no public exploit code or CISA KEV entry was identified at time of analysis, and remediation is available in version 5.0.2.
Use-after-free in GNU Screen's UTF-8 combining-character handling can corrupt the heap and, per the reporter, be leveraged toward arbitrary code execution. Only the GNU Screen v5 branch prior to 5.0.2 is affected; the flaw sits in utf8_handle_comb() in encoding.c, where an allocation failure frees the global combchars pointer without resetting it to NULL, and a later combining Unicode character arriving at the terminal dereferences the stale pointer. Exploitation requires the attacker to control the terminal content stream the victim feeds into the session - for example a rogue SSH server - and the allocation-failure precondition (reflected as AT:P in the CVE record) is not reliably forced by the attacker; no public exploit code has been identified at time of analysis, and the vendor has released a fix in 5.0.2.
Local buffer overflow in GNU Screen before 5.0.2 can crash the terminal multiplexer when a user starts screen in an environment where the HOME and STY variables are attacker-controlled and sufficiently long. The flaw is an unchecked sprintf() in SendCmdMessage() in attacher.c that appends STY to the global SocketPath buffer. The vendor fixed it in 5.0.2; no public exploit was identified at time of analysis, the realistic impact is a crash, and arbitrary code execution is unverified.
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,. Rated medium severity (CVSS 6.5), this vulnerability is low attack complexity. Public exploit code available.
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. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
A buffer overflow was found in the way GNU Screen before 4.8.0 treated the special escape OSC 49. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Out-of-bounds Write vulnerability could allow attackers to write data beyond allocated buffer boundaries leading to code execution or crashes.
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. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. Public exploit code available.
Local privilege escalation in GNU Screen's hardcopy file handler lets an unprivileged local user write to arbitrary root-owned system files when the screen binary is installed setuid-root, because the write-permission check is performed with the real UID while the file is subsequently opened with the effective (root) UID. All GNU Screen releases prior to 5.0.2 are affected (CPE cpe:2.3:a:gnu:screen); the vendor assesses the issue at CVSS 5.5, while our independent assessment rates it higher (CVSS 3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H) given the scope change and root-level write impact. Exploitation is local-only and probabilistic, requiring the attacker to win a TOCTOU race by atomically replacing the target path with a symlink, and it is only reachable on hosts where screen is actually shipped setuid-root; no public exploit code or CISA KEV entry was identified at time of analysis, and remediation is available in version 5.0.2.
Use-after-free in GNU Screen's UTF-8 combining-character handling can corrupt the heap and, per the reporter, be leveraged toward arbitrary code execution. Only the GNU Screen v5 branch prior to 5.0.2 is affected; the flaw sits in utf8_handle_comb() in encoding.c, where an allocation failure frees the global combchars pointer without resetting it to NULL, and a later combining Unicode character arriving at the terminal dereferences the stale pointer. Exploitation requires the attacker to control the terminal content stream the victim feeds into the session - for example a rogue SSH server - and the allocation-failure precondition (reflected as AT:P in the CVE record) is not reliably forced by the attacker; no public exploit code has been identified at time of analysis, and the vendor has released a fix in 5.0.2.
Local buffer overflow in GNU Screen before 5.0.2 can crash the terminal multiplexer when a user starts screen in an environment where the HOME and STY variables are attacker-controlled and sufficiently long. The flaw is an unchecked sprintf() in SendCmdMessage() in attacher.c that appends STY to the global SocketPath buffer. The vendor fixed it in 5.0.2; no public exploit was identified at time of analysis, the realistic impact is a crash, and arbitrary code execution is unverified.
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,. Rated medium severity (CVSS 6.5), this vulnerability is low attack complexity. Public exploit code available.
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. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
A buffer overflow was found in the way GNU Screen before 4.8.0 treated the special escape OSC 49. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Out-of-bounds Write vulnerability could allow attackers to write data beyond allocated buffer boundaries leading to code execution or crashes.
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. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. Public exploit code available.