Heap-based Buffer Overflow Affecting freerdp package, versions <3.24.2-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.05% (15th 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 Heap-based Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALPINE323-FREERDP-15805125
  • published29 Mar 2026
  • disclosed30 Mar 2026

Introduced: 29 Mar 2026

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

How to fix?

Upgrade Alpine:3.23 freerdp to version 3.24.2-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream freerdp package and not the freerdp package as distributed by Alpine. See How to fix? for Alpine:3.23 relevant fixed versions and status.

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.24.2, in resize_vbar_entry() in libfreerdp/codec/clear.c, vBarEntry->size is updated to vBarEntry->count before the winpr_aligned_recalloc() call. If realloc fails, size is inflated while pixels still points to the old, smaller buffer. On a subsequent call where count <= size (the inflated value), realloc is skipped. The caller then writes count * bpp bytes of attacker-controlled pixel data into the undersized buffer, causing a heap buffer overflow. This issue has been patched in version 3.24.2.

CVSS Base Scores

version 3.1