CVE-2026-31806 in Freerdp
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.24.0, the gdi_surface_bits() function processes SURFACE_BITS_COMMAND messages sent by the RDP server. When the command is handled using NSCodec, the bmp.width and bmp.height values provided by the server are not properly validated against t...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Freerdp | Freerdp | < 3.24.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.24.0, the gdi_surface_bits() function processes SURFACE_BITS_COMMAND messages sent by the RDP server. When the command is handled using NSCodec, the bmp.width and bmp.height values provided by the server are not properly validated against the actual desktop dimensions. A malicious RDP server can supply crafted bmp.width and bmp.height values that exceed the expected surface size. Because these values are used during bitmap decoding and memory operations without proper bounds checking, this can lead to a heap buffer overflow. Since the attacker can also control the associated pixel data transmitted by the server, the overflow may be exploitable to overwrite adjacent heap memory. This vulnerability is fixed in 3.24.0.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-31806 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-080927-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2026-03-13 |
| Last modified | 2026-07-15 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-122: Heap-Based Buffer Overflow
Buffer overflow corrupting dynamically allocated heap memory, exploitable for arbitrary code execution.
CWE-131: CWE-131
Related attack patterns (CAPEC)
CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-131
CAPEC-92 Forced Integer Overflow via CWE-122
CAPEC-100 Overflow Buffers via CWE-131
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2026-31806 affects FreeRDP versions prior to 3.24.0, where the gdi_surface_bits() function does not properly validate the bmp.width and bmp.height values from a malicious RDP server, leading to potential remote code execution.
A malicious RDP server can send crafted SURFACE_BITS_COMMAND messages with invalid bmp.width and bmp.height values, which can be exploited to execute arbitrary code on the client system.
Questions
What is CVE-2026-31806?
CVE-2026-31806 affects FreeRDP versions prior to 3.24.0, where the gdi_surface_bits() function does not properly validate the bmp.width and bmp.height values from a malicious RDP server, leading to potential remote code execution.
What is the CVSS score for CVE-2026-31806?
CVE-2026-31806 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.0%.
Is CVE-2026-31806 actively exploited?
No confirmed active exploitation of CVE-2026-31806 as of 2026-09-25.
How do I remediate CVE-2026-31806?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2026-31806?
CVE-2026-31806 affects Freerdp Freerdp.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Freerdp","product":"Freerdp","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-15.