CVE-2021-41160
Improper region checks in FreeRDP allow out of bound write to memory
- State
- Published
- Severity
- 5.3 Medium
- Published
- Oct 21, 2021
- Updated
- Nov 3, 2025
- Reserved
- Sep 15, 2021
Description
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. In affected versions a malicious server might trigger out of bound writes in a connected client. Connections using GDI or SurfaceCommands to send graphics updates to the client might send `0` width/height or out of bound rectangles to trigger out of bound writes. With `0` width or heigth the memory allocation will be `0` but the missing bounds checks allow writing to the pointer at this (not allocated) region. This issue has been patched in FreeRDP 2.4.1.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 5.3 Medium | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N | GitHub_M |
Weaknesses
- CWE-787 Out-of-bounds Write
Affected Products
| Product | Versions |
|---|---|
FreeRDPFreeRDP |
|
References
- https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-7c9r-6r2q-93qg
- FEDORA-2021-2c25f03d0bvendor-advisory
- FEDORA-2021-5d227916bcvendor-advisory
- FEDORA-2021-ac23d9e47fvendor-advisory
- GLSA-202210-24vendor-advisory
- [debian-lts-announce] 20231117 [SECURITY] [DLA 3654-1] freerdp2 security updatemailing-list
- https://lists.debian.org/debian-lts-announce/2025/02/msg00016.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.