Incorrect Calculation of Buffer Size Affecting freerdp/freerdp package, versions [,3.24.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (6th 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 IDSNYK-UNMANAGED-FREERDPFREERDP-15602505
  • published15 Mar 2026
  • disclosed13 Mar 2026
  • creditwooseokdotkim

Introduced: 13 Mar 2026

NewCVE-2026-31806  (opens in a new tab)
CWE-131  (opens in a new tab)

How to fix?

Upgrade freerdp/freerdp to version 3.24.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Calculation of Buffer Size in the gdi_surface_bits function when processing SURFACE_BITS_COMMAND messages. An attacker can execute arbitrary code by sending crafted image dimensions from a malicious server, causing a heap buffer overflow during bitmap decoding and memory operations. This is only exploitable if a susceptible system connects to a malicious server.

CVSS Base Scores

version 4.0
version 3.1