Global Buffer Overflow in GNU screen
- State
- Published
- Severity
- 4.6 Medium
- Published
- Nov 26, 2026
- Updated
- Nov 26, 2026
- Reserved
- Aug 6, 2026
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.
| Product | Versions |
|---|---|
| Screen GNU | before 5.0.2 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 4.6 Medium | CERT-PL |
Weaknesses
- CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
References
- https://cert.pl/en/posts/2026/11/CVE-2026-71409Third-Party Advisory
- https://savannah.gnu.org/git/?group=screenProduct Page
- https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=21aef43ea720b5c810b913830e3add075e517dbbPatch
- https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=15a1481ad85309835c466a49f99a55537a78d596Patch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.