All reports
Medium

freerdp: FreeRDP: heap out-of-bounds read in WinPR clipboard PNG-to-CF_DIB synthesis

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-114043

Probability of exploitation in the next 30 days: 0.40%

FIRST EPSS · 2026-11-23

Description

FreeRDP before 3.32.1 contains a heap-based out-of-bounds read in WinPR's clipboard PNG-to-CF_DIB synthesis because winpr_read_png_from_buffer() allocates a bit-packed buffer for PNGs with bit depth below 8, while winpr_bitmap_write_buffer() copies rows assuming one byte per pixel. A malicious RDP server can send a crafted low-bit-depth PNG clipboard payload that, when pasted by the victim, discloses megabytes of heap memory.

A flaw was found in FreeRDP. WinPR's clipboard PNG-to-CF_DIB synthesis allocates a bit-packed buffer for PNGs with bit depth below 8, while winpr_bitmap_write_buffer() copies rows assuming one byte per pixel. A malicious RDP server can send a crafted low-bit-depth PNG clipboard payload that, when pasted by the victim, discloses heap memory. This issue affects FreeRDP before 3.32.1 when WINPR_UTILS_IMAGE_PNG is enabled.