SecurityContext

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

IdName
CWE-122Heap-based Buffer Overflow
CWE-131Incorrect Calculation of Buffer Size

Public exploits

UrlSourceAdded date
https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-rrqm-46rj-cmx2nvd2026-03-13

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/FreeRDP/FreeRDP/commit/83d9aedea278a74af3e490ff5eeb889c016dbb2bPatch
https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-rrqm-46rj-cmx2Exploit, Patch, Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:10076
https://access.redhat.com/errata/RHSA-2026:10734
https://access.redhat.com/errata/RHSA-2026:10735
https://access.redhat.com/errata/RHSA-2026:10951
https://access.redhat.com/errata/RHSA-2026:11323
https://access.redhat.com/errata/RHSA-2026:19033
https://access.redhat.com/errata/RHSA-2026:6340
https://access.redhat.com/errata/RHSA-2026:6727

Products

ProductAffectedPlatform boundSourcesUrl
freerdp:freerdp< 3.24.0nonvd/v1/products/freerdp/freerdp

Projects

RepositoryLink kindsIndexedUrl
FreeRDP/FreeRDPcommit, fix, security_advisoryyes/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