Heap-based Buffer Overflow Affecting freerdp/freerdp package, versions [,3.32.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.14% (4th 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-UNMANAGED-FREERDPFREERDP-21187895
  • published18 Oct 2026
  • disclosed16 Oct 2026
  • creditprogrammervuln

Introduced: 16 Oct 2026

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

How to fix?

Upgrade freerdp/freerdp to version 3.32.0 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via persistent_cache_read_entry_v3 in libfreerdp/cache/persistent.c. A local attacker can supply a malicious v3 persistent cache file containing large width and height values that cause a 64-bit unsigned integer wraparound in persist_cache_get_data (the calculation 4ull * entry->width * entry->height wraps to a small value such as 24), bypassing the expected > UINT32_MAX guard. The resulting tainted size is truncated to 1 byte during heap allocation via winpr_aligned_recalloc, and a subsequent fread call uses the un-truncated wrapped size (24 bytes) to write into the 1-byte buffer, producing a heap-buffer-overflow write that can corrupt memory and potentially allow arbitrary code execution.

References

CVSS Base Scores

version 4.0
version 3.1