# CVE-2023-39356: Missing offset validation leading to Out-of-Bounds Read in FreeRDP

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

## Description

```text
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. In affected versions a missing offset validation may lead to an Out Of Bound Read in the function `gdi_multi_opaque_rect`. In particular there is no code to validate if the value `multi_opaque_rect->numRectangles` is less than 45. Looping through `multi_opaque_rect->`numRectangles without proper boundary checks can lead to Out-of-Bounds Read errors which will likely lead to a crash. This issue has been addressed in versions 2.11.0 and 3.0.0-beta3. Users are advised to upgrade. There are no known workarounds for this vulnerability.
```

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- EPSS: 1.809%, percentile 79.359%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian freerdp2 (Debian): \< 2.11.7+dfsg1-6~deb12u1
- ubuntu freerdp2 (Ubuntu): \< 2.2.0+dfsg1-0ubuntu0.18.04.4+esm2 \| \< 2.2.0+dfsg1-0ubuntu0.20.04.6 \| \< 2.6.1+dfsg1-3ubuntu2.5
- debian debian\_linux: 10.0
- fedoraproject fedora: 37 \| 38 \| 39
- freerdp freerdp: ≥ 3.0.0-beta1, \< 3.0.0-beta3 \| \< 2.11.0 \| 3.0.0:beta1 \| 3.0.0:beta2

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-q5v5-qhj5-mh6m>
- <https://github.com/FreeRDP/FreeRDP/blob/63a2f65618748c12f79ff7450d46c6e194f2db76/include/freerdp/primary.h#L186-L196>
- <https://github.com/FreeRDP/FreeRDP/blob/63a2f65618748c12f79ff7450d46c6e194f2db76/libfreerdp/core/orders.c#L1503-L1504>
- <https://github.com/FreeRDP/FreeRDP/blob/63a2f65618748c12f79ff7450d46c6e194f2db76/libfreerdp/gdi/gdi.c#L723C1-L758>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OH2ATH2BKDNKCJAU4WPPXK4SHLE3UJUV/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A6LLDAPEXRDJOM3PREDDD267SSNT77DP/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IHMTGKCZXJPQOR5ZD2I4GPDNP2DKRXMF/>
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00008.html>
- <https://security.gentoo.org/glsa/202401-16>
- <https://lists.debian.org/debian-lts-announce/2025/02/msg00016.html>
- <https://ubuntu.com/security/CVE-2023-39356>
- <https://ubuntu.com/security/notices/USN-6522-1>
- <https://ubuntu.com/security/notices/USN-6522-2>
- <https://www.cve.org/CVERecord?id=CVE-2023-39356>
- <https://security-tracker.debian.org/tracker/CVE-2023-39356>

---

Data as of 2026-12-05T09:58:47.104Z. 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
