AZL-116326: CVE-2026-71409 affecting package screen 4.9.1-1
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
screento a version that resolves this vulnerability.Fixed in 5.0.2
Event History
Frequently Asked Questions
What conditions are required for exploitation?
GNU screen must be executed with attacker-controlled HOME and STY environment variable values that are sufficiently long. The overflow occurs when SendCmdMessage() appends STY to the global SocketPath buffer using an unchecked sprintf() call.
Who is realistically exposed to this issue?
Systems are exposed where an attacker can influence the HOME and STY environment of a GNU screen process before it runs. The provided data does not establish that ordinary default environment values trigger the flaw.
What is the remediation?
Update GNU screen to version 5.0.2 or later, where this issue is fixed. If updating cannot happen immediately, prevent untrusted users or processes from supplying HOME or STY values to screen and avoid running it in attacker-controlled environments.
What could successful exploitation cause?
Successful exploitation may crash the GNU screen application. It may also potentially allow arbitrary code execution.