FreeRDP has a Heap Buffer Overflow in nsc_process_message() via Unchecked SURFACE_BITS_COMMAND Bitmap Dimensions

Summary

CVECVE-2026-31806
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-03-13 19:54:36 UTC
Updated2026-07-15 02:19:50 UTC
DescriptionFreeRDP 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.

Risk And Classification

Primary CVSS: v4.0 9.3 CRITICAL from [email protected]

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

EPSS: 0.006560000 probability, percentile 0.472950000 (date 2026-07-18)

Problem Types: CWE-122 | CWE-131 | CWE-122 CWE-122: Heap-based Buffer Overflow | CWE-131 Incorrect Calculation of Buffer Size


VersionSourceTypeScoreSeverityVector
4.0[email protected]Secondary9.3CRITICALCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/C...
4.0CNADECLARED9.3CRITICALCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
3.1[email protected]Primary9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1ADPCVSS8.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
3.10b0ca135-0b70-47e7-9f44-1890c2a1c46cSecondary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS v4.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Confidentiality
High
Integrity
High
Availability
High
Sub Conf.
None
Sub Integrity
None
Sub Availability
None

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Freerdp Freerdp All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA FreeRDP FreeRDP affected < 3.24.0 Not specified
ADP Red Hat Red Hat Enterprise Linux 10 unaffected 2:3.10.3-12.el10_2.2 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 10 unaffected 2:3.10.3-5.el10_1.5 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support unaffected 2:3.10.3-3.el10_0.5 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support unaffected 0:2.1.1-5.el7_9.7 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8 unaffected 2:2.11.7-6.el8_10 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support unaffected 2:2.0.0-46.rc4.el8_2.10 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support unaffected 2:2.2.0-12.el8_4 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On unaffected 2:2.2.0-12.el8_4 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support unaffected 2:2.2.0-7.el8_6.5 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service unaffected 2:2.2.0-7.el8_6.5 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8.6 Update Services For SAP Solutions unaffected 2:2.2.0-7.el8_6.5 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service unaffected 2:2.2.0-12.el8_8.5 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8.8 Update Services For SAP Solutions unaffected 2:2.2.0-12.el8_8.5 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 9 unaffected 2:2.11.7-1.el9_7.5 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 9.0 Update Services For SAP Solutions unaffected 2:2.4.1-3.el9_0.4 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 9.2 Update Services For SAP Solutions unaffected 2:2.4.1-6.el9_2.6 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support unaffected 2:2.11.2-1.el9_4.5 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support unaffected 2:2.11.7-1.el9_6.7 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 6 Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/errata/RHSA-2026:6799 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:6958 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:10734 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:11323 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31806.json 0b0ca135-0b70-47e7-9f44-1890c2a1c46c security.access.redhat.com
access.redhat.com/security/cve/CVE-2026-31806 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:9640 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:10076 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:19033 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:10951 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
bugzilla.redhat.com/show_bug.cgi 0b0ca135-0b70-47e7-9f44-1890c2a1c46c bugzilla.redhat.com
access.redhat.com/errata/RHSA-2026:6743 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:6727 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:6918 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:10735 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:6340 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
github.com/FreeRDP/FreeRDP/security/advisories/GHSA-rrqm-46rj-cmx2 [email protected] github.com Exploit, Patch, Vendor Advisory
access.redhat.com/errata/RHSA-2026:9641 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
github.com/FreeRDP/FreeRDP/commit/83d9aedea278a74af3e490ff5eeb889c016dbb2b [email protected] github.com Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
ADP2026-03-13T18:02:52.800ZReported to Red Hat.
ADP2026-03-13T17:40:19.920ZMade public.

Solutions

ADP: RHSA-2026:11323: Red Hat Enterprise Linux Server (v. 7 ELS), Red Hat Enterprise Linux Server Optional (v. 7 ELS)

ADP: RHSA-2026:6743: Red Hat Enterprise Linux AppStream EUS (v. 10.0), Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0)

ADP: RHSA-2026:6799: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)

ADP: RHSA-2026:19033: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)

ADP: RHSA-2026:6918: Red Hat Enterprise Linux AppStream (v. 8), Red Hat Enterprise Linux CRB (v. 8)

ADP: RHSA-2026:10734: Red Hat Enterprise Linux AppStream AUS (v. 8.2)

ADP: RHSA-2026:10735: Red Hat Enterprise Linux AppStream AUS (v.8.4), Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4)

ADP: RHSA-2026:10951: Red Hat Enterprise Linux AppStream AUS (v.8.6), Red Hat Enterprise Linux AppStream E4S (v.8.6), Red Hat Enterprise Linux AppStream TUS (v.8.6)

ADP: RHSA-2026:10076: Red Hat Enterprise Linux AppStream E4S (v.8.8), Red Hat Enterprise Linux AppStream TUS (v.8.8)

ADP: RHSA-2026:9640: Red Hat Enterprise Linux AppStream E4S (v.9.0)

ADP: RHSA-2026:9641: Red Hat Enterprise Linux AppStream E4S (v.9.2)

ADP: RHSA-2026:6958: Red Hat CodeReady Linux Builder EUS (v.9.4), Red Hat Enterprise Linux AppStream EUS (v.9.4)

ADP: RHSA-2026:6727: Red Hat CodeReady Linux Builder EUS (v.9.6), Red Hat Enterprise Linux AppStream EUS (v.9.6)

ADP: RHSA-2026:6340: Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report