CVEfocus › CVE database › CVE-2026-31806

CVE-2026-31806FreeRDP has a Heap Buffer Overflow in nsc_process_message() via Unchecked…

CVSS 9.3 CriticalEPSS 1.0% (higher than 62% of CVEs)Published 2026-03-13Updated 2026-07-15Assigner: GitHub_M

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.

CWE-122CWE-131

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

40Fixed
6Fix pending
1Under investigation
1Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04freerdp3Not affected
vulnerable_code_not_present
Ubuntu 25.10freerdp3Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-31806
Ubuntu 24.04freerdp2Fix pendingUBUNTU-CVE-2026-31806
Ubuntu 24.04freerdp3Fixed3.30.0+dfsg-0ubuntu0.24.04.1UBUNTU-CVE-2026-31806
Ubuntu 22.04freerdp2Under investigationUBUNTU-CVE-2026-31806
Ubuntu 20.04freerdp2Fix pendingUBUNTU-CVE-2026-31806
Ubuntu 18.04freerdpFix pendingUBUNTU-CVE-2026-31806
Ubuntu 18.04freerdp2Fix pendingUBUNTU-CVE-2026-31806
Ubuntu 16.04freerdpFix pendingUBUNTU-CVE-2026-31806
Debian 14freerdp3Fixed3.24.0+dfsg-1DEBIAN-CVE-2026-31806
Debian 13freerdp3Fixed3.15.0+dfsg-2.1+deb13u2DEBIAN-CVE-2026-31806
Debian 12freerdp2Fix pendingDEBIAN-CVE-2026-31806
Red Hat Enterprise Linux 10freerdpFixed2:3.10.3-5.el10_1.5RHSA-2026:19033
Red Hat Enterprise Linux 10freerdp-develFixed2:3.10.3-5.el10_1.5RHSA-2026:19033
Red Hat Enterprise Linux 10freerdp-libsFixed2:3.10.3-5.el10_1.5RHSA-2026:19033
Red Hat Enterprise Linux 10freerdp-serverFixed2:3.10.3-12.el10_2.2RHSA-2026:6799
Red Hat Enterprise Linux 10libwinprFixed2:3.10.3-5.el10_1.5RHSA-2026:19033
Red Hat Enterprise Linux 10libwinpr-develFixed2:3.10.3-12.el10_2.2RHSA-2026:6799
Red Hat Enterprise Linux 9freerdpFixed2:2.11.7-1.el9_7.5RHSA-2026:6340
Red Hat Enterprise Linux 9freerdp-develFixed2:2.11.7-1.el9_7.5RHSA-2026:6340
Red Hat Enterprise Linux 9freerdp-libsFixed2:2.11.7-1.el9_7.5RHSA-2026:6340
Red Hat Enterprise Linux 9libwinprFixed2:2.11.7-1.el9_7.5RHSA-2026:6340
Red Hat Enterprise Linux 9libwinpr-develFixed2:2.11.7-1.el9_7.5RHSA-2026:6340
Red Hat Enterprise Linux 8freerdpFixed2:2.11.7-6.el8_10RHSA-2026:6918
Red Hat Enterprise Linux 8freerdp-develFixed2:2.11.7-6.el8_10RHSA-2026:6918
Red Hat Enterprise Linux 8freerdp-libsFixed2:2.11.7-6.el8_10RHSA-2026:6918
Red Hat Enterprise Linux 8libwinprFixed2:2.11.7-6.el8_10RHSA-2026:6918
Red Hat Enterprise Linux 8libwinpr-develFixed2:2.11.7-6.el8_10RHSA-2026:6918
Red Hat Enterprise Linux 6freerdpNot affected
Red Hat Enterprise Linux 6freerdp-develNot affected
Red Hat Enterprise Linux 6freerdp-libsNot affected
Red Hat Enterprise Linux 6freerdp-pluginsNot affected
AlmaLinux 10freerdpFixed2:3.10.3-5.el10_1.5ALSA-2026:6799
AlmaLinux 10freerdp-develFixed2:3.10.3-5.el10_1.5ALSA-2026:6799
AlmaLinux 10freerdp-libsFixed2:3.10.3-5.el10_1.5ALSA-2026:6799
AlmaLinux 10freerdp-serverFixed2:3.10.3-5.el10_1.5ALSA-2026:6799
AlmaLinux 10libwinprFixed2:3.10.3-5.el10_1.5ALSA-2026:6799
AlmaLinux 10libwinpr-develFixed2:3.10.3-5.el10_1.5ALSA-2026:6799
AlmaLinux 9freerdpFixed2:2.11.7-1.el9_7.5ALSA-2026:6340
AlmaLinux 9freerdp-develFixed2:2.11.7-1.el9_7.5ALSA-2026:6340
AlmaLinux 9freerdp-libsFixed2:2.11.7-1.el9_7.5ALSA-2026:6340
AlmaLinux 9libwinprFixed2:2.11.7-1.el9_7.5ALSA-2026:6340
AlmaLinux 9libwinpr-develFixed2:2.11.7-1.el9_7.5ALSA-2026:6340
AlmaLinux 8freerdpFixed2:2.11.7-6.el8_10ALSA-2026:6918
AlmaLinux 8freerdp-develFixed2:2.11.7-6.el8_10ALSA-2026:6918
AlmaLinux 8freerdp-libsFixed2:2.11.7-6.el8_10ALSA-2026:6918
AlmaLinux 8libwinprFixed2:2.11.7-6.el8_10ALSA-2026:6918
AlmaLinux 8libwinpr-develFixed2:2.11.7-6.el8_10ALSA-2026:6918
Rocky Linux 10freerdpFixed2:3.10.3-5.el10_1.5RLSA-2026:6799
Rocky Linux 9freerdpFixed2:2.11.7-1.el9_7.5RLSA-2026:6340
Rocky Linux 8freerdpFixed2:2.11.7-6.el8_10RLSA-2026:6918
Alpine Linux 3.24freerdpFixed3.24.0-r0ALPINE-CVE-2026-31806
Alpine Linux 3.23freerdpFixed3.24.0-r0ALPINE-CVE-2026-31806

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.