# CVE-2023-40187: Use-After-Free in FreeRDP

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/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.16%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-31T21:21:12.787Z
- Modified: 2026-06-17T06:16:37.513Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions of the 3.x beta branch are subject to a Use-After-Free issue in the `avc420_ensure_buffer` and `avc444_ensure_buffer` functions. If the value of `piDstSize[x]` is 0, `ppYUVDstData[x]` will be freed. However, in this case `ppYUVDstData[x]` will not have been updated which leads to a Use-After-Free vulnerability. This issue has been addressed in version 3.0.0-beta3. Users of the 3.x beta releases are advised to upgrade. There are no known workarounds for this vulnerability.

(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 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-pwf9-v5p9-ch4f> (exploit, vendor-advisory)
- <https://github.com/FreeRDP/FreeRDP/blob/5be5553e0da72178a4b94cc1ffbdace9ceb153e5/libfreerdp/codec/h264.c#L413-L427> (issue-tracking)
- <https://security.gentoo.org/glsa/202401-16>

## Sources

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

---

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