Vulnerability · Published Oct 21, 2021 · Assigned by GitHub_M

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

Medium 5.8

In plain English

A medium-severity out-of-bounds write in FreeRDP from FreeRDP. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.8Medium
Exploit odds (30 days)1.5%top 25.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8freerdp2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux:8freerdp-devel2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux:8freerdp-libs2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux:8libwinpr2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux:8libwinpr-devel2:2.2.0-7.el8_5ALSA-2021:4622
Alpine:v3.20freerdp2.4.1-r0ALPINE-CVE-2021-41159
Alpine:v3.21freerdp2.4.1-r0ALPINE-CVE-2021-41159
Alpine:v3.22freerdp2.4.1-r0ALPINE-CVE-2021-41159
Alpine:v3.23freerdp2.4.1-r0ALPINE-CVE-2021-41159
Alpine:v3.24freerdp2.4.1-r0ALPINE-CVE-2021-41159
Alpine:v3.22freerdp22.4.1-r0ALPINE-CVE-2021-41159
Alpine:v3.23freerdp22.4.1-r0ALPINE-CVE-2021-41159
Alpine:v3.24freerdp22.4.1-r0ALPINE-CVE-2021-41159
Debian:12freerdp22.4.1+dfsg1-1DEBIAN-CVE-2021-41159
Rocky Linux:8freerdp2:2.2.0-7.el8_5RLSA-2021:4622
Ubuntu:22.04:LTSfreerdp22.3.0+dfsg1-2ubuntu2UBUNTU-CVE-2021-41159

Affected products (as reported)

VendorProductVersions
FreeRDP FreeRDP < 2.4.1

Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N

References