Critical Buffer Overflow Vulnerability in GNU Screen Package

screen Updated 02 Oct 2025

Summary

24/02/2020
N/A
Yes i
Critical
9.8

ALPINE-CVE-2020-9366: A buffer overflow was found in the way GNU Screen before 4.8.0 treated the special escape OSC 49. Affects screen versions < 4.6.2-r1. Fixed in 4.6.2-r1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

GNU Screen is a terminal multiplexer that allows users to manage multiple terminal sessions from a single window. It is widely used for its ability to detach and reattach sessions, making it a valuable tool for remote work and server management. However, a critical vulnerability has been identified in versions prior to 4.8.0, which exposes users to potential memory corruption and crashes.

Vulnerability Detail

A buffer overflow was found in the way GNU Screen before version 4.8.0 treated the special escape OSC 49. This vulnerability can be exploited through specially crafted output or a specific program, leading to memory corruption, crashes, or potentially other unspecified impacts. The severity of this vulnerability is reflected in its CVSS score of 9.8, indicating a high risk to users.

How To Fix

Minimum fixed version

4.6.2-r1

This is the first release that contains the fix.

sudo apk add --upgrade screen

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using the special escape OSC 49 until they can update to a patched version. This may involve modifying scripts or configurations that utilize this escape sequence.

Conclusion

The buffer overflow vulnerability in GNU Screen poses a significant risk to users, with the potential for memory corruption and crashes. It is crucial for users to update to the patched version to mitigate these risks. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in real-time.

See every vulnerability recorded for screen →

Share this vulnerability

FAQ

A buffer overflow occurs when a program writes more data to a block of memory, or buffer, than it was allocated for. This can lead to memory corruption, crashes, or exploitation by attackers.

You can check your version of GNU Screen by running the command 'screen --version' in your terminal. If it is below 4.8.0, it is vulnerable.

Exploitation of this vulnerability can lead to crashes of the Screen application, memory corruption, and potentially allow attackers to execute arbitrary code.

Yes, tools like Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software without requiring access to the code or installation.

Detailed information about this vulnerability can be found in the CVE database under CVE-2020-9366 and on the Alpine Linux security advisories.

Related vulnerabilities

Recent vulnerabilities recorded for screen.

How To Fix

Minimum fixed version

4.6.2-r1

This is the first release that contains the fix.

sudo apk add --upgrade screen

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback