Global Buffer Overflow in GNU screen
- CVE-2026-71409
- GHSA-mqx9-v7w6-9vhp
- EUVD-2026-136481
Description
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.
Text from the CVE.org record.
Recommendation
GNU Screen
- If you run a version before 5.0.2update to 5.0.2 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
GNU Screen
Affected versions Fixed in before 5.0.2 5.0.2
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.