CVE-2026-71409: Global Buffer Overflow in GNU screen

Published Nov 26, 2026
·
Updated

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.

Affected Software

1 affected component
GNU Screen<5.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.0.2

Event History

Nov 26, 2026
CVE Published
via MITRE·01:22 PM
Data Sourced
via MITRE·01:22 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is realistically exposed to exploitation?

Systems running GNU screen before version 5.0.2 are exposed when it is launched with attacker-controlled HOME and STY environment variable values that are sufficiently long. This is most relevant where an attacker can influence the environment of a GNU screen process.

2

What does an attacker need to trigger the issue?

The attacker needs control over both the HOME and STY environment variables in the environment used to execute GNU screen, and the values must be long enough to overflow the global SocketPath buffer.

3

Are users of GNU screen 5.0.2 affected?

No. The issue is fixed in GNU screen version 5.0.2.

4

What can be done if upgrading is not immediately possible?

Prevent untrusted parties from controlling the HOME or STY values supplied when GNU screen is executed, particularly long values. Restrict execution contexts that inherit attacker-influenced environment variables.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203