# CVE-2021-41160: Improper region checks in FreeRDP allow out of bound write to memory

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

## Description

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

## 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.662%, percentile 77.517%, 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: 33 \| 34 \| 35
- freerdp freerdp: \< 2.4.1

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-7c9r-6r2q-93qg>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DWJXQOWKNR7O5HM2HFJOM4GBUFPTE3RG/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZXCR73EDVPLI6TRWRAWJCJ7OBYDKBB74/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WIZUPVRGCWUDAPDOQVUGUIYUO7UWKMXX/>
- <https://security.gentoo.org/glsa/202210-24>
- <https://lists.debian.org/debian-lts-announce/2023/11/msg00010.html>
- <https://lists.debian.org/debian-lts-announce/2025/02/msg00016.html>
- <https://ubuntu.com/security/CVE-2021-41160>
- <https://ubuntu.com/security/notices/USN-5154-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-41160>
- <https://security-tracker.debian.org/tracker/CVE-2021-41160>
- <https://security.alpinelinux.org/vuln/CVE-2021-41160>

---

Data as of 2026-12-05T06:22:29.529Z. 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
