PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-31806 FreeRDP CVE debrief

CVE-2026-31806 is a critical heap buffer overflow vulnerability in FreeRDP, a free implementation of the Remote Desktop Protocol. The vulnerability exists in the gdi_surface_bits() function, which processes SURFACE_BITS_COMMAND messages sent by the RDP server. A malicious RDP server can supply crafted bmp.width and bmp.height values that exceed the expected surface size, leading to a heap buffer overflow. This vulnerability is fixed in version 3.24.0. Users of FreeRDP should upgrade to version 3.24.0 or later to mitigate this vulnerability. The vulnerability has a CVSS score of 9.3 and is considered critical.

Vendor
FreeRDP
Product
Unknown
CVSS
CRITICAL 9.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-03-13
Original CVE updated
2026-07-15
Advisory published
2026-03-13
Advisory updated
2026-07-15

Who should care

Users of FreeRDP, particularly those who use it to connect to remote desktops, should be aware of this vulnerability and take steps to mitigate it. This includes upgrading to version 3.24.0 or later, and ensuring that all instances of FreeRDP are updated. Additionally, users should be cautious when connecting to remote desktops, especially those from untrusted sources.

Technical summary

The gdi_surface_bits() function in FreeRDP 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, leading to a heap buffer overflow. This can be exploited to overwrite adjacent heap memory, potentially leading to code execution or denial of service.

Defensive priority

This vulnerability has a high defensive priority due to its critical CVSS score and potential for exploitation. Users of FreeRDP should prioritize upgrading to version 3.24.0 or later to mitigate this vulnerability.

Recommended defensive actions

  • Upgrade to version 3.24.0 or later of FreeRDP
  • Ensure all instances of FreeRDP are updated
  • Be cautious when connecting to remote desktops, especially those from untrusted sources
  • Monitor for suspicious activity on remote desktops
  • Implement additional security measures, such as network segmentation and access controls

Evidence notes

The vulnerability is documented in the CVE-2026-31806 record and the NVD detail page. The fix is available in version 3.24.0 of FreeRDP. Users should consult the FreeRDP documentation and security advisories for more information on mitigating this vulnerability.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-31806 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-31806

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-31806 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-31806

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://github.com/FreeRDP/FreeRDP/commit/83d9aedea278a74af3e490ff5eeb889c016dbb2b

    [email protected] - Patch

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-rrqm-46rj-cmx2

    [email protected] - Exploit, Patch, Vendor Advisory

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:10076

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:10734

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:10735

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:10951

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:11323

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.