CVE-2026-71409 PUBLISHED

Global Buffer Overflow in GNU screen

Assigner: CERT-PL
Reserved: 06.08.2026 Published: 26.11.2026 Updated: 26.11.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 4.6

Product Status

Vendor GNU
Product Screen
Versions Default: unaffected
  • affected from 0 to 5.0.2 (excl.)

Credits

  • Michał Majchrowicz (AFINE Team) finder
  • Marcin Wyczechowski (AFINE Team) finder

References

Problem Types

  • CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') CWE