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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-10-21 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2021-41159, DEBIAN-CVE-2021-41159, ALPINE-CVE-2021-41159
- Record: https://cvemate.com/vulnerability/CVE-2021-41159 · JSON: https://cvemate.com/vulnerability/CVE-2021-41159/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.492%, percentile 75.02%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine freerdp (Alpine Linux): \< 2.4.1-r0
- alpine freerdp2 (Alpine Linux): \< 2.4.1-r0
- debian freerdp2 (Debian): \< 2.4.1+dfsg1-1
- ubuntu freerdp (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp2 (Ubuntu): \< 2.2.0+dfsg1-0ubuntu0.18.04.2 \| \< 2.2.0+dfsg1-0ubuntu0.20.04.2 \| \< 2.3.0+dfsg1-2ubuntu2
- fedoraproject fedora: 35
- freerdp freerdp: \< 2.4.1

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-vh34-m9h7-95xq>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DWJXQOWKNR7O5HM2HFJOM4GBUFPTE3RG/>
- <https://security.gentoo.org/glsa/202210-24>
- <https://ubuntu.com/security/CVE-2021-41159>
- <https://ubuntu.com/security/notices/USN-5154-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-41159>
- <https://security-tracker.debian.org/tracker/CVE-2021-41159>
- <https://security.alpinelinux.org/vuln/CVE-2021-41159>

---

Data as of 2026-12-05T07:09:31.347Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
