# CVE-2023-40576: 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-02-13
- Aliases: UBUNTU-CVE-2023-40576
- Record: https://cvemate.com/vulnerability/CVE-2023-40576 · JSON: https://cvemate.com/vulnerability/CVE-2023-40576/json

## Description

```text
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions are subject to an Out-Of-Bounds Read in the `RleDecompress` function. This Out-Of-Bounds Read occurs because FreeRDP processes the `pbSrcBuffer` variable without checking if it contains data of sufficient length. Insufficient data in the `pbSrcBuffer` variable may cause errors or crashes. This issue has been addressed in version 3.0.0-beta3. Users are advised to upgrade. There are no known workarounds for this issue.
```

## Signals

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

## Affected

- ubuntu freerdp2 (Ubuntu): \< 2.2.0+dfsg1-0ubuntu0.20.04.4 \| \< 2.6.1+dfsg1-3ubuntu2.3
- freerdp freerdp: ≥ 3.0.0-beta1, \< 3.0.0-beta3 \| 3.0.0:beta1 \| 3.0.0:beta2

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-x3x5-r7jm-5pq2>
- <https://github.com/FreeRDP/FreeRDP/blob/5be5553e0da72178a4b94cc1ffbdace9ceb153e5/libfreerdp/codec/include/bitmap.c#L94-L113>
- <https://security.gentoo.org/glsa/202401-16>
- <https://ubuntu.com/security/CVE-2023-40576>
- <https://www.cve.org/CVERecord?id=CVE-2023-40576>

---

Data as of 2026-12-06T06:55:00.495Z. 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
