Vulnerability · Published Aug 31, 2023 · Assigned by GitHub_M
CVE-2023-40186IntegerOverflow leading to Out-Of-Bound Write Vulnerability in FreeRDP
Medium 6.5
In plain English
A medium-severity out-of-bounds write in FreeRDP from FreeRDP. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions are subject to an IntegerOverflow leading to Out-Of-Bound Write Vulnerability in the `gdi_CreateSurface` function. This issue affects FreeRDP based clients only. FreeRDP proxies are not affected as image decoding is not done by a proxy. 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 issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | freerdp | 2:2.11.2-1.el9 | ALSA-2024:2208 |
| AlmaLinux:9 | freerdp-devel | 2:2.11.2-1.el9 | ALSA-2024:2208 |
| AlmaLinux:9 | freerdp-libs | 2:2.11.2-1.el9 | ALSA-2024:2208 |
| AlmaLinux:9 | libwinpr | 2:2.11.2-1.el9 | ALSA-2024:2208 |
| AlmaLinux:9 | libwinpr-devel | 2:2.11.2-1.el9 | ALSA-2024:2208 |
| Debian:12 | freerdp2 | 2.11.7+dfsg1-6~deb12u1 | DEBIAN-CVE-2023-40186 |
| Ubuntu:22.04:LTS | freerdp2 | 2.6.1+dfsg1-3ubuntu2.4 | USN-6401-1 |
| Ubuntu:22.04:LTS | freerdp2 | 2.6.1+dfsg1-3ubuntu2.4 | UBUNTU-CVE-2023-40186 |
Affected products (as reported)
Weakness: CWE-787, CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
References
- https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-hcj4-3c3r-5j3v x_refsource_CONFIRM
- https://github.com/FreeRDP/FreeRDP/blob/fee2b10ba1154f952769a53eb608f044782e22f8/libfreerdp/gdi/gfx.c#L1156-L1165 x_refsource_MISC
- 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