CVE-2026-31806: FreeRDP - Buffer Overflow
- Cve: CVE-2026-31806
- Name: FreeRDP - Buffer Overflow
- 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.
- Impact: A malicious RDP server can cause heap buffer overflow, potentially leading to arbitrary code execution or memory corruption on the client.
- Remediation: Update to FreeRDP version 3.24.0 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00748
- Epss percentile: 0.55641
- Assignee: [email protected]
- Published at: 2026-03-13T19:54:36Z
- Age in days: 256
- Modified at: 2026-07-15T02:19:50Z
- Patch available: yes
- Public exploits total: 1
- References total: 19
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-31806
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-122 | Heap-based Buffer Overflow |
| CWE-131 | Incorrect Calculation of Buffer Size |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-rrqm-46rj-cmx2 | nvd | 2026-03-13 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| freerdp:freerdp | < 3.24.0 | no | nvd | /v1/products/freerdp/freerdp |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| FreeRDP/FreeRDP | commit, fix, security_advisory | yes | /v1/repositories/FreeRDP/FreeRDP |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-03-13
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts