CVEfocus › CVE database › CVE-2023-40181

CVE-2023-40181Integer-Underflow leading to Out-Of-Bound Read in FreeRDP

CVSS 5.3 MediumEPSS 1.8% (higher than 80% of CVEs)Published 2023-08-31Updated 2025-11-03Assigner: GitHub_M

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions are subject to an Integer-Underflow leading to Out-Of-Bound Read in the `zgfx_decompress_segment` function. In the context of `CopyMemory`, it's possible to read data beyond the transmitted packet range and likely cause a crash. This issue has been addressed in versions 2.11.0 and 3.0.0-beta3. Users are advised to upgrade. There are no known workarounds for this issue.

CWE-125CWE-191

What to do

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

Red Hat, 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

13Fixed
6Fix pending
10Will not fix

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 22.04freerdp2Fixed2.6.1+dfsg1-3ubuntu2.4UBUNTU-CVE-2023-40181
Ubuntu 20.04freerdp2Fixed2.2.0+dfsg1-0ubuntu0.20.04.5UBUNTU-CVE-2023-40181
Ubuntu 18.04freerdp2Fix pending2.2.0+dfsg1-0ubuntu0.18.04.4+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-40181
Debian 12freerdp2Fixed2.11.7+dfsg1-6~deb12u1DEBIAN-CVE-2023-40181
Red Hat Enterprise Linux 9freerdpFixed2:2.11.2-1.el9RHSA-2024:2208
Red Hat Enterprise Linux 9freerdp-develFixed2:2.11.2-1.el9RHSA-2024:2208
Red Hat Enterprise Linux 9freerdp-libsFixed2:2.11.2-1.el9RHSA-2024:2208
Red Hat Enterprise Linux 9libwinprFixed2:2.11.2-1.el9RHSA-2024:2208
Red Hat Enterprise Linux 9libwinpr-develFixed2:2.11.2-1.el9RHSA-2024:2208
Red Hat Enterprise Linux 8freerdpFix pending
Fix deferred
Red Hat Enterprise Linux 8freerdp-develFix pending
Fix deferred
Red Hat Enterprise Linux 8freerdp-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8libwinprFix pending
Fix deferred
Red Hat Enterprise Linux 8libwinpr-develFix pending
Fix deferred
Red Hat Enterprise Linux 7freerdpWill not fix
Out of support scope
Red Hat Enterprise Linux 7freerdp-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7freerdp-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7freerdp-pluginsWill not fix
Out of support scope
Red Hat Enterprise Linux 7libwinprWill not fix
Out of support scope
Red Hat Enterprise Linux 7libwinpr-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6freerdpWill not fix
Out of support scope
Red Hat Enterprise Linux 6freerdp-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6freerdp-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6freerdp-pluginsWill not fix
Out of support scope
AlmaLinux 9freerdpFixed2:2.11.2-1.el9ALSA-2024:2208
AlmaLinux 9freerdp-develFixed2:2.11.2-1.el9ALSA-2024:2208
AlmaLinux 9freerdp-libsFixed2:2.11.2-1.el9ALSA-2024:2208
AlmaLinux 9libwinprFixed2:2.11.2-1.el9ALSA-2024:2208
AlmaLinux 9libwinpr-develFixed2:2.11.2-1.el9ALSA-2024:2208

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.