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

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.49%, higher than 74% of CVEs (2026-12-01)
- Published: 2021-10-21T00:00:00.000Z
- Modified: 2026-06-17T04:07:59.687Z
- Weaknesses: CWE-787
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- FreeRDP FreeRDP: < 2.4.1; before 2.4.1
- fedoraproject fedora: 35

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-vh34-m9h7-95xq> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DWJXQOWKNR7O5HM2HFJOM4GBUFPTE3RG/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202210-24> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-41159](https://www.cve.org/CVERecord?id=CVE-2021-41159), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-41159](https://nvd.nist.gov/vuln/detail/CVE-2021-41159), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41159 · Whole record: https://cve.day/CVE-2021-41159.json · Rebuilt by cve.day 2026-11-25T22:58:04.719Z
