CVE-2021-41160
Improper region checks in FreeRDP allow out of bound write to memory
Reported by github_m · Published October 21, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| freerdp | Amazon Linux | 2.1.1-5.amzn2 |
| libwinpr-devel | Amazon Linux | 2.1.1-5.amzn2 |
| freerdp | Arch Linux | 2:2.4.1-1 |
| libwinpr | Amazon Linux | 2.1.1-5.amzn2 |
| freerdp | freerdp | 2.4.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| FreeRDP | FreeRDP | < 2.4.1 |
| amazon:2 | freerdp | 0 |
| amazon:2 | libwinpr-devel | 0 |
| arch | freerdp | 0 |
| amazon:2 | libwinpr | 0 |
| amazon:2 | freerdp-libs | 0 |
| alpine | freerdp2 | 0 |
| FreeRDP | FreeRDP | 0 |
| amazon:2 | freerdp-devel | 0 |
| alpine | freerdp | 0 |
Timeline
- Oct 21, 2021 CVE Published
- Oct 22, 2021 EPSS Score (30 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Mar 10, 2026 Security Advisory
- Jul 21, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-41160
vulnetix vdb fixes CVE-2021-41160
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-41160/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2021-2c25f03d0b vendor-advisory
- FEDORA-2021-5d227916bc vendor-advisory
- FEDORA-2021-ac23d9e47f vendor-advisory
- GLSA-202210-24 vendor-advisory
- [debian-lts-announce] 20231117 [SECURITY] [DLA 3654-1] freerdp2 security update mailing-list
- https://lists.debian.org/debian-lts-announce/2025/02/msg00016.html advisory