Out-of-bounds Write Affecting freerdp/freerdp package, versions [,3.26.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.81% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-FREERDPFREERDP-17660855
  • published28 Jun 2026
  • disclosed26 May 2026
  • creditUnknown

Introduced: 26 May 2026

CVE-2026-40033  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade freerdp/freerdp to version 3.26.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write in the gdi_CacheToSurface function due to improper validation of rectangle coordinates, which allows copy operations to use unclamped cache entry dimensions. An attacker can execute unauthorized code or cause a system crash by enticing a user to connect to a malicious Remote Desktop Protocol (RDP) server. This is only exploitable if the client connects to an untrusted or compromised RDP server.

Workaround

This vulnerability can be mitigated by restricting usage to only known and trusted RDP servers and avoiding connections to untrusted or unknown servers.

CVSS Base Scores

version 4.0
version 3.1