Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111881 Overview
CVE-2026-111881 is an integer underflow vulnerability [CWE-191] in FreeRDP, an open-source implementation of the Remote Desktop Protocol (RDP). The flaw resides in the WinPR BMP writer, where a mismatched stride calculation passes SIZE_MAX - 3 to Stream_Zero when processing sub-byte images. A malicious RDP clipboard peer can return a crafted 1-bits-per-pixel (bpp) BMP that is processed by clipboard_synthesize_image_format_to_bmp for CF_DIB and CF_DIBV5 formats. The result is a client crash or an out-of-bounds write. Versions from 3.14.1 up to (but not including) 3.32.0 are affected.
Critical Impact
A malicious RDP server can crash a connecting FreeRDP client or trigger an out-of-bounds write via crafted clipboard data, with potential for memory corruption on the victim host.
Affected Products
- FreeRDP versions 3.14.1 through 3.31.x
- WinPR library bundled with the affected FreeRDP versions
- Downstream applications and distributions embedding vulnerable FreeRDP builds (for example, Remmina, Weston RDP backends, and third-party RDP clients)
Discovery Timeline
- 2026-10-17 - CVE-2026-111881 published to the National Vulnerability Database (NVD)
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-111881
Vulnerability Analysis
The defect lives in the WinPR BMP writer used by FreeRDP's clipboard synthesis path. When a remote clipboard peer advertises image data in CF_DIB or CF_DIBV5 format, FreeRDP converts the payload into a BMP via clipboard_synthesize_image_format_to_bmp. For images with sub-byte pixel depth, such as 1-bpp bitmaps, the stride computation does not account for pixel packing. The miscalculated stride is then subtracted from the available buffer length, producing an unsigned underflow that yields a near-maximum size value (SIZE_MAX - 3). That value is passed to Stream_Zero, which attempts to zero a buffer region far beyond the allocated bounds. The resulting out-of-bounds write typically crashes the client and may corrupt adjacent heap state.
Root Cause
The root cause is an integer underflow in the stride arithmetic within the BMP writer. The code assumes byte-aligned pixel data and does not validate that the computed stride is less than or equal to the destination buffer length before subtraction. For 1-bpp bitmaps the computed row length is smaller than expected, but a flawed check inverts the comparison and underflows the length value passed downstream.
Attack Vector
Exploitation requires a FreeRDP client to connect to an attacker-controlled or compromised RDP server and for the user to interact with the clipboard channel. The malicious peer returns a crafted 1-bpp BMP in response to a clipboard format request. No credentials on the server side are required to deliver the payload once the client has initiated the session. The vulnerability is reachable without authentication on the client, but it does require user interaction to establish the RDP session.
No public exploit is available at the time of writing. See the GitHub Security Advisory GHSA-27m7-gwhh-6hhf and the VulnCheck Advisory for FreeRDP for upstream technical detail.
Detection Methods for CVE-2026-111881
Indicators of Compromise
- Unexpected crashes of FreeRDP-based clients (xfreerdp, wlfreerdp, Remmina) shortly after connecting to a remote host and interacting with the clipboard
- Core dumps or segmentation faults in the WinPR BMP writer or near Stream_Zero call frames
- RDP sessions terminating during clipboard format negotiation for CF_DIB or CF_DIBV5
Detection Strategies
- Inventory endpoints and servers for FreeRDP builds in the vulnerable range (3.14.1 through 3.31.x) using software composition analysis or package manager queries
- Hunt for outbound RDP (TCP/3389) connections from workstations to untrusted destinations, especially internet-facing IPs
- Correlate client application crashes with preceding RDP session establishment events to identify in-the-wild attempts
Monitoring Recommendations
- Alert on process termination events for xfreerdp, wlfreerdp, and embedding applications when preceded by an RDP network connection
- Monitor for new or unusual RDP destinations initiated by user endpoints that typically do not use RDP
- Capture and retain core dumps from RDP clients to enable post-incident analysis of memory-corruption attempts
How to Mitigate CVE-2026-111881
Immediate Actions Required
- Upgrade FreeRDP to version 3.32.0 or later on all client systems and in any application bundling the library
- Audit third-party software that embeds FreeRDP or WinPR and apply vendor updates as they are released
- Restrict outbound RDP connections from user workstations to a vetted allowlist of internal destinations
Patch Information
The FreeRDP maintainers fixed the issue in version 3.32.0. Users running any release in the 3.14.1 through 3.31.x range should upgrade. Refer to the GitHub Security Advisory GHSA-27m7-gwhh-6hhf for the fixed-version details and commit references.
Workarounds
- Disable the RDP clipboard redirection channel when connecting to untrusted servers (for example, omit +clipboard or pass /clipboard:off to xfreerdp)
- Avoid initiating RDP sessions to servers outside of trusted administrative boundaries until patched builds are deployed
- Enforce network segmentation and egress filtering to block RDP traffic from endpoints that do not require it
# Example: launch xfreerdp with clipboard redirection disabled
xfreerdp /v:<server> /u:<user> /clipboard:off
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

