{"schemaVersion":3,"id":"CVE-2026-31806","aliases":["UBUNTU-CVE-2026-31806","DEBIAN-CVE-2026-31806"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-03-13T17:40:19.920Z","modified":"2026-07-15T01:08:56.156Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":9.3,"severity":"critical","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":9.3,"severity":"critical","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9.3,"severity":"critical","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00667,"percentile":0.5102,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.010999999999999985,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00656},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00844,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00844,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00667,"percentile":0.5102}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00844,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00844,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00656,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00667,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00667,"percentile":0.5102}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_FREERDP_FREERDP","name":"Freerdp","source":"github","url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-5wr6-8m8j-3h7f","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"},{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size","description":"The product does not correctly calculate the size to be used when allocating a buffer, which could lead to a buffer overflow.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/131.html"}],"affected":[{"vendor":"debian","product":"freerdp2","name":"freerdp2","label":"freerdp2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/freerdp2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"freerdp3","name":"freerdp3","label":"freerdp3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/freerdp3","purlType":"deb","versions":[{"text":"< 3.15.0+dfsg-2.1+deb13u2","noFixRecorded":false,"fixedIn":null},{"text":"< 3.24.0+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.15.0+dfsg-2.1+deb13u2 | < 3.24.0+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"freerdp","name":"freerdp","label":"freerdp","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/freerdp","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"freerdp2","name":"freerdp2","label":"freerdp2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/freerdp2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"freerdp3","name":"freerdp3","label":"freerdp3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/freerdp3","purlType":"deb","versions":[{"text":"< 3.30.0+dfsg-0ubuntu0.24.04.1","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"< 3.30.0+dfsg-0ubuntu0.24.04.1 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"freerdp","product":"freerdp","name":"freerdp","label":"freerdp","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.24.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.24.0","eol":null,"hubHref":"/vendor/freerdp/freerdp"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-rrqm-46rj-cmx2","label":"github.com/FreeRDP/FreeRDP/security/advisories/GHSA-rrqm-46rj-cmx2","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Exploit","Patch","Vendor Advisory"]},{"url":"https://github.com/FreeRDP/FreeRDP/commit/83d9aedea278a74af3e490ff5eeb889c016dbb2b","label":"github.com/FreeRDP/FreeRDP/commit/83d9aedea278a74af3e490ff5eeb889c016dbb2b","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-31806","label":"access.redhat.com/security/cve/CVE-2026-31806","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2447376","label":"bugzilla.redhat.com/show_bug.cgi?id=2447376","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31806.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31806.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:11323","label":"access.redhat.com/errata/RHSA-2026:11323","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6743","label":"access.redhat.com/errata/RHSA-2026:6743","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6799","label":"access.redhat.com/errata/RHSA-2026:6799","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19033","label":"access.redhat.com/errata/RHSA-2026:19033","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6918","label":"access.redhat.com/errata/RHSA-2026:6918","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10734","label":"access.redhat.com/errata/RHSA-2026:10734","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10735","label":"access.redhat.com/errata/RHSA-2026:10735","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10951","label":"access.redhat.com/errata/RHSA-2026:10951","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10076","label":"access.redhat.com/errata/RHSA-2026:10076","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:9640","label":"access.redhat.com/errata/RHSA-2026:9640","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:9641","label":"access.redhat.com/errata/RHSA-2026:9641","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6958","label":"access.redhat.com/errata/RHSA-2026:6958","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6727","label":"access.redhat.com/errata/RHSA-2026:6727","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6340","label":"access.redhat.com/errata/RHSA-2026:6340","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://ubuntu.com/security/CVE-2026-31806","label":"ubuntu.com/security/CVE-2026-31806","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-31806","label":"www.cve.org/CVERecord?id=CVE-2026-31806","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8561-1","label":"ubuntu.com/security/notices/USN-8561-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-31806","label":"security-tracker.debian.org/tracker/CVE-2026-31806","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0086","OPENSUSE-SU-2026:10408-1","OPENSUSE-SU-2026:10459-1","RHSA-2026:10076","RHSA-2026:10734","RHSA-2026:10735","RHSA-2026:10951","RHSA-2026:11323","RHSA-2026:19033","RHSA-2026:6340","RHSA-2026:6727","RHSA-2026:6743","RHSA-2026:6799","RHSA-2026:6918","RHSA-2026:6958","RHSA-2026:9640","RHSA-2026:9641","SUSE-SU-2026:1129-1","SUSE-SU-2026:1160-1","SUSE-SU-2026:1164-1","SUSE-SU-2026:1165-1","SUSE-SU-2026:1398-1","USN-8561-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:10408-1","OPENSUSE-SU-2026:10459-1","SUSE-SU-2026:1129-1","SUSE-SU-2026:1160-1","SUSE-SU-2026:1164-1","SUSE-SU-2026:1165-1","SUSE-SU-2026:1398-1","USN-8561-1"]},"timeline":[{"kind":"published","date":"2026-03-13T17:40:19.920Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:08:56.156Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T10:10:03.867Z","stale":false,"partial":false}}