CVE-2021-41159 Improper client input validation for FreeRDP gateway connections allows to overwrite memory
A malicious RDP gateway can trigger out-of-bounds memory writes in FreeRDP clients using RPC gateway connections, potentially allowing code execution.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-41159?
CVE-2021-41159 is a medium-severity memory corruption vulnerability in Fedoraproject Fedora, published on 21 Oct 2021. An attacker needs administrator access to exploit it, with no action from the victim.
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.
Weakness: CWE-787
Which versions are affected by CVE-2021-41159?
It affects 2 products.
Products include Fedoraproject Fedora, Freerdp Freerdp.
How do I fix CVE-2021-41159?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-41159 being exploited?
There is no known exploitation of CVE-2021-41159 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as CLEANSTART-2024-VN48963, CLSA-2024-1723224273, DEBIAN-CVE-2021-41159, GHSA-vh34-m9h7-95xq, OESA-2021-1414, UBUNTU-CVE-2021-41159.