# CVE-2023-40576: Out-Of-Bounds Read in FreeRDP

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.34%, higher than 72% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-31T21:35:38.155Z
- Modified: 2026-06-17T06:18:32.713Z
- Weaknesses: CWE-125
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- FreeRDP FreeRDP: >= 3.0.0-beta1, < 3.0.0-beta3; 3.0.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-x3x5-r7jm-5pq2> (exploit, vendor-advisory)
- <https://github.com/FreeRDP/FreeRDP/blob/5be5553e0da72178a4b94cc1ffbdace9ceb153e5/libfreerdp/codec/include/bitmap.c#L94-L113> (issue-tracking)
- <https://security.gentoo.org/glsa/202401-16>

## Sources

- CVE List: [CVE-2023-40576](https://www.cve.org/CVERecord?id=CVE-2023-40576), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-40576](https://nvd.nist.gov/vuln/detail/CVE-2023-40576), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40576 · Whole record: https://cve.day/CVE-2023-40576.json · Rebuilt by cve.day 2026-11-25T22:58:27.495Z
