Skip to main content

GNU Screen EUVDEUVD-2026-136481

| CVE-2026-71409 MEDIUM
Classic Buffer Overflow (CWE-120)
2026-11-26 CERT-PL
4.6
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local environment control
  2. Delivery
    Set long malicious HOME and STY variables
  3. Exploit
    Victim launches GNU screen in that environment
  4. Execution
    Unchecked sprintf overflows SocketPath buffer
  5. Impact
    Application 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

screen 0 <5.0.2

Affected Packages

euvd screen fix: 5.0.2

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

Vendor (CERT-PL) PRIMARY 4.6 MEDIUM
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
vuln.today AI 3.6 LOW

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

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

EPSS Score
0.3%
Top 82% exploitable
Prevalence
High
GNU screen is a widely deployed terminal multiplexer across Linux/Unix servers
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

23
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +23
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy