Critical Integer Underflow Vulnerability in rdesktop Package Leading to Potential Remote Code Execution

rdesktop Updated 02 Oct 2025

Summary

15/03/2019
N/A
Yes i
Critical
9.8

ALPINE-CVE-2018-20180: rdesktop versions up to and including v1.8.3 contain an Integer Underflow that leads to a Heap-Based Buffer Overflow in the function rdpsnddbg_process() and results in memory corruption and probably even a remote code ex... Affects rdesktop versions < 1.8.6-r0. Fixed in 1.8.6-r0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

rdesktop is an open-source client for the Remote Desktop Protocol (RDP), allowing users to connect to Windows desktops and servers. It is widely used in various environments for remote access due to its lightweight nature and compatibility with multiple operating systems. However, certain versions of rdesktop are vulnerable to an integer underflow issue that can lead to serious security risks.

Vulnerability Detail

The vulnerability identified as CVE-2018-20180 affects rdesktop versions up to and including v1.8.3. It stems from an integer underflow in the function rdpsnddbg_process(), which can result in a heap-based buffer overflow. This memory corruption can potentially allow an attacker to execute arbitrary code remotely, posing a significant threat to systems using the affected versions.

How To Fix

Minimum fixed version

1.8.6-r0

This is the first release that contains the fix.

sudo apk add --upgrade rdesktop

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

Workaround

As a temporary workaround, users may consider disabling remote desktop access until the package can be updated. This can be done by modifying the firewall settings to block RDP traffic or by removing the rdesktop package entirely until a secure version is installed.

Conclusion

The rdesktop package has a critical vulnerability (CVE-2018-20180) that can lead to severe security risks, including remote code execution. It is crucial for users to update to the patched version 1.8.6-r0 or later to mitigate these risks. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for rdesktop →

Share this vulnerability

FAQ

CVE-2018-20180 is a security vulnerability in the rdesktop package that can lead to remote code execution due to an integer underflow.

You can check your version of rdesktop by running 'rdesktop -version' in the terminal. If it is below 1.8.6-r0, it is vulnerable.

Failing to address this vulnerability can expose your system to remote code execution attacks, potentially allowing attackers to gain unauthorized access and control.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for rdesktop.

How To Fix

Minimum fixed version

1.8.6-r0

This is the first release that contains the fix.

sudo apk add --upgrade rdesktop

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