cve.bz

CVE-2026-31806 freerdp freerdp: Heap-based Buffer Overflow

9.3 criticalExploit referenceEPSS 0.7%Fix available

Critical (9.3) in freerdp freerdp. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

9.3 critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-03-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-122 Heap-based Buffer Overflow
CWE-131 Incorrect Calculation of Buffer Size
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-31806 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-31806?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-31806?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-31806 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
freerdp:freerdpbefore 3.24.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12freerdp2no fix listedDEBIAN-CVE-2026-31806
Debian13freerdp33.15.0+dfsg-2.1+deb13u2DEBIAN-CVE-2026-31806
Debian14freerdp33.24.0+dfsg-1DEBIAN-CVE-2026-31806
Ubuntu16.04:LTS, 18.04:LTSfreerdpno fix listedUBUNTU-CVE-2026-31806
Ubuntu22.04:LTS, Pro:18.04:LTS, Pro:20.04:LTS and 1 morefreerdp2no fix listedUBUNTU-CVE-2026-31806
Ubuntu24.04:LTSfreerdp33.30.0+dfsg-0ubuntu0.24.04.1UBUNTU-CVE-2026-31806 USN-8561-1
Ubuntu25.10freerdp3no fix listedUBUNTU-CVE-2026-31806
Ubuntu26.04:LTSfreerdp33.30.0+dfsg-0ubuntu0.26.04.1USN-8561-1
Red Hatenterprise_linux:8::appstreamfreerdp, libwinpr, freerdp-libs and 5 more2:2.11.7-6.el8_10RHSA-2026:6918
Red Hatenterprise_linux:8::crbfreerdp-devel, freerdp-debuginfo, libwinpr-debuginfo and 2 more2:2.11.7-6.el8_10RHSA-2026:6918
Red Hatenterprise_linux:9::appstreamfreerdp, libwinpr, freerdp-libs and 4 more2:2.11.7-1.el9_7.5RHSA-2026:6340
Red Hatenterprise_linux:9::crbfreerdp-devel, libwinpr-devel, freerdp-debuginfo and 3 more2:2.11.7-1.el9_7.5RHSA-2026:6340
Red Hatenterprise_linux:10.1freerdp, libwinpr, freerdp-libs and 8 more2:3.10.3-5.el10_1.5RHSA-2026:6799
Red Hatenterprise_linux:10.2freerdp, libwinpr, freerdp-libs and 8 more2:3.10.3-12.el10_2.2RHSA-2026:19033
Red Hatenterprise_linux_eus:10.0freerdp, libwinpr, freerdp-libs and 8 more2:3.10.3-3.el10_0.5RHSA-2026:6743
Red Hatrhel_aus:8.2::appstreamfreerdp, libwinpr, freerdp-libs and 5 more2:2.0.0-46.rc4.el8_2.10RHSA-2026:10734
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamfreerdp, libwinpr, freerdp-libs and 5 more2:2.2.0-12.el8_4RHSA-2026:10735
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamfreerdp, libwinpr, freerdp-libs and 5 more2:2.2.0-7.el8_6.5RHSA-2026:10951
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamfreerdp, libwinpr, freerdp-libs and 5 more2:2.2.0-12.el8_8.5RHSA-2026:10076
Red Hatrhel_e4s:9.0::appstreamfreerdp, libwinpr, freerdp-libs and 4 more2:2.4.1-3.el9_0.4RHSA-2026:9640
6 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Package Hub 15 SP7freerdp2.11.2-150600.4.18.1SUSE-SU-2026:1160-1
SUSELinux Enterprise Module for Package Hub 15 SP7freerdp2.4.0-150400.3.47.1SUSE-SU-2026:1129-1
SUSELinux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Workstation Extension 15 SP7freerdp3.10.3-150700.3.9.1SUSE-SU-2026:1398-1
SUSELinux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Workstation Extension 15 SP7freerdp22.11.7-150700.3.14.1SUSE-SU-2026:1164-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5freerdp2.1.2-12.63.1SUSE-SU-2026:1165-1
openSUSELeap 15.6freerdp2.11.2-150600.4.18.1SUSE-SU-2026:1160-1
openSUSETumbleweedfreerdp3.24.1-1.1openSUSE-SU-2026:10408-1
openSUSETumbleweedfreerdp22.11.7-6.1openSUSE-SU-2026:10459-1
AlmaLinux8freerdp, libwinpr, freerdp-libs and 2 more2:2.11.7-6.el8_10ALSA-2026:6918
AlmaLinux9freerdp, libwinpr, freerdp-libs and 2 more2:2.11.7-1.el9_7.5ALSA-2026:6340
AlmaLinux10freerdp, libwinpr, freerdp-libs and 3 more2:3.10.3-5.el10_1.5ALSA-2026:6799
Rocky Linux8freerdp2:2.11.7-6.el8_10RLSA-2026:6918
Rocky Linux9freerdp2:2.11.7-1.el9_7.5RLSA-2026:6340
Rocky Linux10freerdp2:3.10.3-5.el10_1.5RLSA-2026:6799
Alpinev3.23, v3.24freerdp3.24.0-r0ALPINE-CVE-2026-31806

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

For this vulnerability to be exploited, a susceptible system must connect to a malicious server. For that reason, Red Hat recommends that you only use FreeRDP to connect to trusted servers.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10freerdp-2:3.10.3-5.el10_1.5Fixed 2026-04-07RHSA-2026:6799
Red Hat Enterprise Linux 10freerdp-2:3.10.3-12.el10_2.2Fixed 2026-05-19RHSA-2026:19033
Red Hat Enterprise Linux 10.0 Extended Update Supportfreerdp-2:3.10.3-3.el10_0.5Fixed 2026-04-07RHSA-2026:6743
Red Hat Enterprise Linux 7 Extended Lifecycle Supportfreerdp-0:2.1.1-5.el7_9.7Fixed 2026-04-28RHSA-2026:11323
Red Hat Enterprise Linux 8freerdp-2:2.11.7-6.el8_10Fixed 2026-04-07RHSA-2026:6918
Red Hat Enterprise Linux 8.2 Advanced Update Supportfreerdp-2:2.0.0-46.rc4.el8_2.10Fixed 2026-04-27RHSA-2026:10734
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportfreerdp-2:2.2.0-12.el8_4Fixed 2026-04-27RHSA-2026:10735
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onfreerdp-2:2.2.0-12.el8_4Fixed 2026-04-27RHSA-2026:10735
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportfreerdp-2:2.2.0-7.el8_6.5Fixed 2026-04-27RHSA-2026:10951
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicefreerdp-2:2.2.0-7.el8_6.5Fixed 2026-04-27RHSA-2026:10951
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsfreerdp-2:2.2.0-7.el8_6.5Fixed 2026-04-27RHSA-2026:10951
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicefreerdp-2:2.2.0-12.el8_8.5Fixed 2026-04-23RHSA-2026:10076
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsfreerdp-2:2.2.0-12.el8_8.5Fixed 2026-04-23RHSA-2026:10076
Red Hat Enterprise Linux 9freerdp-2:2.11.7-1.el9_7.5Fixed 2026-04-01RHSA-2026:6340
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsfreerdp-2:2.4.1-3.el9_0.4Fixed 2026-04-22RHSA-2026:9640
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsfreerdp-2:2.4.1-6.el9_2.6Fixed 2026-04-22RHSA-2026:9641
Red Hat Enterprise Linux 9.4 Extended Update Supportfreerdp-2:2.11.2-1.el9_4.5Fixed 2026-04-08RHSA-2026:6958
Red Hat Enterprise Linux 9.6 Extended Update Supportfreerdp-2:2.11.7-1.el9_6.7Fixed 2026-04-07RHSA-2026:6727
Red Hat Enterprise Linux 6freerdpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-31806.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High
  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON