Read the docs

Buffer overflow in GNU Screen can crash it or run code

Priority LOW 21CWE-120Published · Updated

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

EPSS 0.00326 18th percentileScored 2026-11-30
Fix Partial Screen (GNU): 5.0.2Red Hat: 2 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
GNUScreenbefore 5.0.25.0.2Patch availableCNA
  • Screen VendorGNU Affected before 5.0.2 Fixed in 5.0.2 Patch available CNA

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 →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix yet

Timeline

  1. 2026-11-26 Threatist record created from CVE-2026-71409
  2. 2026-11-27 Alias added: GHSA-mqx9-v7w6-9vhp
  3. 2026-11-27 Affected versions changed · Red Hat
  4. 2026-11-27 CVSS score added · Red Hat

References

  • 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
See all 1287 →

Sources