Skip to main content

GNU Screen EUVDEUVD-2026-136482

| CVE-2026-71410 LOW
Use After Free (CWE-416)
2026-11-26 CERT-PL
2.1
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

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

  1. Access
    Lure victim's screen session to rogue SSH server
  2. Delivery
    Stream crafted combining Unicode escape sequences
  3. Exploit
    Trigger allocation failure freeing combchars pointer
  4. Execution
    Dereference dangling pointer via next combining char
  5. Impact
    Heap-groom to achieve arbitrary code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an attacker who controls the terminal content stream delivered to the GNU Screen session - e.g., a rogue SSH server the victim connects to, or crafted escape sequences / combining Unicode characters fed into the session. Two sequential conditions must hold: (1) a memory-allocation failure must occur so that utf8_handle_comb() frees the global combchars pointer without resetting it to NULL, and (2) a subsequent combining Unicode character must arrive to dereference the freed pointer. Limiting factors that reduce real-world risk: the attack vector is local terminal content (AV:L), not a remote network service; the allocation-failure precondition is attacker-uncontrolled (reflected as AT:P) and not reliably forced; exploitation requires the victim to view or connect to attacker-controlled content; and only the GNU Screen v5 branch prior to 5.0.2 is affected.

Impact

Signals conflict and must be weighed carefully. The vendor/CNA CVSS 4.0 vector (AV:L/AC:L/AT:P, score 2.1) rates this a LOW-severity availability issue (VC:N/VI:N/VA:L) - essentially a crash - yet the description explicitly claims heap grooming leading to arbitrary code execution, and the Tags assert 'RCE'. This is a direct impact disagreement: the scored metrics do not credit the confidentiality/integrity impact that a successful UAF-to-ACE would produce. No EPSS score is provided, the CVE is NOT in CISA KEV, and no exploit/PoC reference is present, so there is no public exploitation signal. The vuln.today Decision label is 'monitor', consistent with the low real-world urgency: AV:L confines reach to attackers who already control terminal content reaching the session, and AT:P reflects that a memory-allocation failure must first occur to free combchars - an attacker-uncontrolled precondition that makes reliable triggering, let alone weaponized code execution, difficult. Net assessment: this is a genuine memory-corruption bug worth patching but a low operational priority - it is not a drop-everything issue. The headline risk hinges on whether the RCE claim is achievable in practice, which the low vendor CVSS implicitly disputes; treat the ACE outcome as asserted-but-unproven and verify with CERT-PL/vendor.

Exploit ScenarioDerived

A victim connects their GNU Screen (v5 branch) session to an attacker-controlled endpoint - such as a rogue SSH server - or opens attacker-supplied content containing crafted escape sequences. Under a memory-allocation failure the global combchars pointer is freed without being reset to NULL, and a subsequent combining Unicode character dereferences the dangling pointer; with heap grooming this can be steered toward code execution in the user's screen process. No public exploit identified at time of analysis - only the vendor advisory and patch commits are referenced.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 26, 2026

Use-after-free in GNU Screen's UTF-8 combining-character handling can corrupt the heap and, per the reporter, be leveraged toward arbitrary code execution. Only the GNU Screen v5 branch prior to 5.0.2 is affected; the flaw sits in utf8_handle_comb() in encoding.c, where an allocation failure frees the global combchars pointer without resetting it to NULL, and a later combining Unicode character arriving at the terminal dereferences the stale pointer. Exploitation requires the attacker to control the terminal content stream the victim feeds into the session - for example a rogue SSH server - and the allocation-failure precondition (reflected as AT:P in the CVE record) is not reliably forced by the attacker; no public exploit code has been identified at time of analysis, and the vendor has released a fix in 5.0.2.

RemediationAI

Vendor-released patch: upgrade to GNU Screen 5.0.2 - the two referenced screen-v5 commits (3dea5ff20c58ad497062d094b6a9b80a7535a7db and 15a1481ad85309835c466a49f99a55537a78d596, linked from https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=3dea5ff20c58ad497062d094b6a9b80a7535a7db and https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=15a1481ad85309835c466a49f99a55537a78d596, with repository context at https://savannah.gnu.org/git/?group=screen) correct the error path so the combchars pointer is no longer left dangling. Until 5.0.2 is deployed, the practical exposure reduction is to avoid driving screen sessions with terminal content from untrusted sources - notably not attaching screen to sessions hosted on untrusted or rogue SSH servers and not feeding untrusted escape sequences or combining-character data into a session - at the cost of restricting legitimate remote workflows; no other vendor-documented workaround is provided in the available references, and because the vulnerable path is only reached after a memory-allocation failure, raising memory headroom reduces but does not eliminate the precondition.

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

The issue is a classic CWE-416 use-after-free in GNU Screen's terminal encoding layer. Screen maintains a global combchars pointer used while assembling multi-byte/combining Unicode characters received from the terminal stream; in utf8_handle_comb() the error path taken when a memory allocation fails frees that global buffer but leaves the pointer non-NULL, so the next combining character that reaches the function is written through or dereferenced from freed memory. Because the dangling pointer is global and persists across terminal input processing, subsequent attacker-influenced character data drives heap reuse - the description frames this as heap grooming toward arbitrary code execution, while the independently assessed CVSS:3.1 vector (AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H) models high confidentiality, integrity and availability impact but with a hard, attacker-uncontrolled precondition. The CPE entry cpe:2.3:a:gnu:screen:*:*:*:*:*:*:*:* is a wildcard, but the reporter and fix commits scope the defect to the screen-v5 development/maintenance branch, fixed in 5.0.2; the trigger path beyond the allocation-failure-then-combining-character sequence is not further described in the available sources.

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 2.1 LOW
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L
vuln.today AI 7.0 HIGH

AV:L needs control of local terminal content; AC:H for the required allocation-failure precondition and heap grooming; UI:R as the victim must view attacker content; impact High per the arbitrary-code-execution claim.

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

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
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 Use-After-Free in the utf8_handle_comb() function in encoding.c. Due to improper error handling during memory allocation failure, the global combchars pointer is freed but not reset to NULL. When a subsequent combining Unicode character arrives at the terminal, the function dereferences the freed pointer. An attacker who controls terminal content sent to the screen session, such as via a rogue SSH server or crafted escape sequences, can exploit this vulnerability to perform heap grooming and achieve arbitrary code execution.

This issue was fixed in version 5.0.2.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Medium
Common terminal multiplexer, but only the newer v5 branch is affected
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 LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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