CVEfocus › CVE database › CVE-2021-41159

CVE-2021-41159Improper client input validation for FreeRDP gateway connections allows to overwrite…

CVSS 5.8 MediumEPSS 1.5% (higher than 74% of CVEs)Published 2021-10-21Updated 2024-08-04Assigner: GitHub_M

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. All FreeRDP clients prior to version 2.4.1 using gateway connections (`/gt:rpc`) fail to validate input data. A malicious gateway might allow client memory to be written out of bounds. This issue has been resolved in version 2.4.1. If you are unable to update then use `/gt:http` rather than /gt:rdp connections if possible or use a direct connection without a gateway.

CWE-787

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.

Ubuntu has 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

33Fixed
3Fix pending
9Not 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 22.04freerdp2Fixed2.3.0+dfsg1-2ubuntu2UBUNTU-CVE-2021-41159
Ubuntu 20.04freerdp2Fixed2.2.0+dfsg1-0ubuntu0.20.04.2UBUNTU-CVE-2021-41159
Ubuntu 18.04freerdpFix pendingUBUNTU-CVE-2021-41159
Ubuntu 18.04freerdp2Fixed2.2.0+dfsg1-0ubuntu0.18.04.2UBUNTU-CVE-2021-41159
Ubuntu 16.04freerdpFix pendingUBUNTU-CVE-2021-41159
Ubuntu 14.04freerdpFix pending
Debian 12freerdp2Fixed2.4.1+dfsg1-1DEBIAN-CVE-2021-41159
Red Hat Enterprise Linux 9freerdpNot affected
Red Hat Enterprise Linux 9freerdp-develNot affected
Red Hat Enterprise Linux 9freerdp-libsNot affected
Red Hat Enterprise Linux 9libwinprNot affected
Red Hat Enterprise Linux 9libwinpr-develNot affected
Red Hat Enterprise Linux 8freerdpFixed2:2.2.0-7.el8_5RHSA-2021:4622
Red Hat Enterprise Linux 8freerdp-develFixed2:2.2.0-7.el8_5RHSA-2021:4622
Red Hat Enterprise Linux 8freerdp-libsFixed2:2.2.0-7.el8_5RHSA-2021:4622
Red Hat Enterprise Linux 8libwinprFixed2:2.2.0-7.el8_5RHSA-2021:4622
Red Hat Enterprise Linux 8libwinpr-develFixed2:2.2.0-7.el8_5RHSA-2021:4622
Red Hat Enterprise Linux 7freerdpFixed0:2.1.1-5.el7_9RHSA-2021:4619
Red Hat Enterprise Linux 7freerdp-develFixed0:2.1.1-5.el7_9RHSA-2021:4619
Red Hat Enterprise Linux 7freerdp-libsFixed0:2.1.1-5.el7_9RHSA-2021:4619
Red Hat Enterprise Linux 7libwinprFixed0:2.1.1-5.el7_9RHSA-2021:4619
Red Hat Enterprise Linux 7libwinpr-develFixed0:2.1.1-5.el7_9RHSA-2021:4619
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 8freerdpFixed2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux 8freerdp-develFixed2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux 8freerdp-libsFixed2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux 8libwinprFixed2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux 8libwinpr-develFixed2:2.2.0-7.el8_5ALSA-2021:4622
Rocky Linux 8freerdpFixed2:2.2.0-7.el8_5RLSA-2021:4622
Alpine Linux 3.24freerdpFixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.24freerdp2Fixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.23freerdpFixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.23freerdp2Fixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.22freerdpFixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.22freerdp2Fixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.21freerdpFixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.20freerdpFixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.19freerdpFixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.18freerdpFixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.17freerdpFixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.16freerdpFixed2.4.1-r0ALPINE-CVE-2021-41159
Alpine Linux 3.15freerdpFixed2.4.1-r0ALPINE-CVE-2021-41159

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.

Vendor advisories:

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.