# CVE-2023-40574: Out-Of-Bounds Write in FreeRDP

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, 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-40574
- Record: https://cvemate.com/vulnerability/CVE-2023-40574 · JSON: https://cvemate.com/vulnerability/CVE-2023-40574/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 Write in the `writePixelBGRX` function. This issue is likely down to incorrect calculations of the `nHeight` and `srcStep` variables. 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: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.206%, percentile 69.368%, 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-422p-gj6x-93cw>
- <https://github.com/FreeRDP/FreeRDP/blob/5be5553e0da72178a4b94cc1ffbdace9ceb153e5/libfreerdp/primitives/prim_YUV.c#L414-L445>
- <https://security.gentoo.org/glsa/202401-16>
- <https://ubuntu.com/security/CVE-2023-40574>
- <https://www.cve.org/CVERecord?id=CVE-2023-40574>

---

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