Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local environment control
-
DeliverySet long malicious HOME and STY variables
-
ExploitVictim launches GNU screen in that environment
-
ExecutionUnchecked sprintf overflows SocketPath buffer
-
ImpactApplication crash or potential code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to control the HOME and STY environment variables inherited by the GNU screen process and to set them to sufficiently long values, and a user must then execute screen in that environment (CVSS UI:A). This is a LOCAL vector (AV:L) - there is no remote exploitation path. Limiting factors: the attacker needs a foothold allowing environment manipulation for the target invocation, the victim must actually launch the affected screen binary, and only versions prior to 5.0.2 are affected. The realistic impact per the supplied metrics is a crash (availability), with code execution unverified. |
| Impact | This is a moderate, not high, priority. The vendor/CERT-PL CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:A) scores 4.6 and describes a LOCAL vulnerability requiring active user interaction (a victim must launch GNU screen in an environment the attacker has seeded with long, controlled HOME and STY values); it is not remotely reachable. No EPSS score, no CISA KEV listing, and no public exploit reference were provided, so there is no public exploit identified at time of analysis and no signal of active exploitation - the vuln.today decision label is only 'this_month', consistent with a patch-available, non-urgent local flaw rather than an emergency. Note a real tension in the data: the description and the 'RCE' tag raise 'potentially arbitrary code execution', yet the supplied CVSS rates all primary impacts low/none (VC:N/VI:N/VA:L) and only low subsequent-system impact, implying a crash is the realistic outcome and code execution is speculative - treat the RCE claim as unverified. The exact trigger beyond 'HOME and STY sufficiently long' is not detailed in the available sources, so the practical path to code execution is not established. |
| Exploit ScenarioDerived | On a multi-user or shared system, an attacker seeds the environment (long attacker-controlled HOME and STY values) that a victim subsequently inherits when running GNU screen; the unchecked sprintf() in SendCmdMessage() overflows the global SocketPath buffer. The most likely result is an application crash, with arbitrary code execution described only as a possibility. No public proof-of-concept or exploit code was referenced in the available data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
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.
RemediationAI
Vendor-released patch: GNU Screen 5.0.2. Upgrade to 5.0.2 or later; the CERT-PL advisory at https://cert.pl/en/posts/2026/11/CVE-2026-71409 and the upstream commits at https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=21aef43ea720b5c810b913830e3add075e517dbb and https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=15a1481ad85309835c466a49f99a55537a78d596 document the fix. The supplied references do not describe a workaround, so upgrading is the complete remediation; because exploitation requires attacker-controlled HOME and STY values at invocation, limiting who can influence those variables for screen launches is consistent with the assessed precondition, but no reference confirms it as a supported workaround. Earlier releases remain affected according to the fixed-version information.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GNU Screen is a terminal multiplexer that lets users detach and reattach sessions. In attacher.c, SendCmdMessage() builds data for attaching and uses sprintf() to append the STY environment variable to the global SocketPath buffer without a bounds check. CWE-120 (classic buffer overflow) captures the unbounded copy: if HOME and STY are both attacker-controlled and long enough, the write can overflow the global buffer. The CVSS 4.0 vector AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L describes a local attack that needs user interaction and has low availability impact, no confidentiality or integrity impact, and low subsequent-system impact; the independent CVSS 3.1 assessment concurs on local vector, user interaction, no C/I impact, low availability impact, and scope changed. Exploitation requires a local foothold capable of setting the environment and a victim who then runs the affected screen binary; the precise overflow threshold is not described in the supplied sources, and code execution is unverified.
Know when Screen gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L
Local, needs a victim to run screen with attacker-seeded env vars (AV:L/UI:R/PR:N); impact confined to a crash with low subsequent-system effect (S:C, A:L), code execution unverified so C/I:N.
Primary rating from Vendor (CERT-PL).
CVSS VectorVendor: CERT-PL
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
encoding.c in GNU Screen through 4.8.0 allows remote attackers to cause a denial of service (invalid write access and ap
GNU screen before 4.5.1 allows local users to modify arbitrary files and consequently gain root privileges by leveraging
socket.c in GNU Screen through 4.9.0, when installed setuid or setgid (the default on platforms such as Arch Linux and F
A buffer overflow was found in the way GNU Screen before 4.8.0 treated the special escape OSC 49. Rated critical severit
Local privilege escalation in GNU Screen's hardcopy file handler lets an unprivileged local user write to arbitrary root
Use-after-free in GNU Screen's UTF-8 combining-character handling can corrupt the heap and, per the reporter, be leverag
EUVD-2026-136481
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB