Buffer overflow in GNU Screen can crash it or run code
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.
Summary
GNU Screen versions before 5.0.2 are affected. An unchecked sprintf() call in SendCmdMessage() overflows the global SocketPath buffer when it appends the STY environment variable (CWE-120). A local attacker who sets long HOME and STY environment variables can crash Screen or potentially execute arbitrary code.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade GNU Screen to version 5.0.2. Red Hat plans no fix for Red Hat Enterprise Linux 6 and lists no fix available for Red Hat Enterprise Linux 7.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
- Fix · CNA Screen (GNU) Fixed in 5.0.2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
GNU Screen 5.0.2
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2026-98806 Race condition in GNU Screen lets local users escalate privilegesPriority LOW 24
- TI-2026-98805 Use-after-free in GNU Screen combining character handlingPriority LOW 11
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix yet |
Timeline
- 2026-11-26 Threatist record created from CVE-2026-71409
- 2026-11-27 Alias added: GHSA-mqx9-v7w6-9vhp
- 2026-11-27 Affected versions changed · Red Hat
- 2026-11-27 CVSS score added · Red Hat
References
Patch 2
More GNU vulnerabilities
- TI-2026-19388 Authentication bypass in GNU Inetutils telnetd via USER variable KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05975 GNU Bash environment variable parsing flaw lets attackers write files KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05157 Code execution in GNU Bash through crafted environment variables KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05164 Command injection in GNU Bash via crafted environment variables KEVCVSS 3.1HIGH 8.8
- TI-2023-04522 Buffer overflow in glibc ld.so allows privilege escalation KEVCVSS 3.1HIGH 7.8
- TI-2009-03392 The TLS protocol, and the SSL protocol 3.0 and possibly earlier, as used in Microsoft… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-71409 · CVE Program
- CVE-2026-71409 · NVD
- FIRST EPSS
- GHSA-mqx9-v7w6-9vhp · GitHub Advisory Database · CC BY 4.0
- CVE-2026-71409 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences