CVE-2023-40181
JSON

5.3medium

Integer-Underflow leading to Out-Of-Bound Read in FreeRDP

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.69% (higher than 77% of CVEs; EPSS, by FIRST)
Published
Last changed
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 Integer-Underflow leading to Out-Of-Bound Read in the `zgfx_decompress_segment` function. In the context of `CopyMemory`, it's possible to read data beyond the transmitted packet range and likely cause a crash. 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

Product or packageVersionsReported by
FreeRDP FreeRDP< 2.11.0, >= 3.0.0-beta1, < 3.0.0-beta3, before 2.11.0, 3.0.0CVE List, NVD
debian debian_linux10.0NVD
fedoraproject fedora37, 38, 39NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Classification

What each source says

CVE List

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions are subject to an Integer-Underflow leading to Out-Of-Bound Read in the `zgfx_decompress_segment` function. In the context of `CopyMemory`, it's possible to read data beyond the transmitted packet range and likely cause a crash. 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.

NVD (es)

FreeRDP es una implementación gratuita del Protocolo de Escritorio Remoto (RDP), publicado bajo la licencia Apache. Las versiones afectadas están sujetas a un desbordamiento negativo de enteros (Integer-Underflow) que conduce a una lectura fuera de límites (Out-Of-Bound Read) en la función 'zgfx_decompress_segment'. En el contexto de 'CopyMemory', es posible leer datos más allá del rango del paquete transmitido y probablemente causar un fallo. Este problema ha sido abordado en las versiones 2.11.0 y 3.0.0-beta3. Se aconseja a los usuarios actualizar. No se conocen soluciones alternativas para este problema.

References

https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-mxp4-rx7x-h2g8exploit, vendor-advisory
https://github.com/FreeRDP/FreeRDP/blob/2252d53001d9ce8a452f0a0a5b1f5ed9db6d57f1/libfreerdp/codec/zgfx.c#L256-L261issue-tracking
https://github.com/FreeRDP/FreeRDP/blob/2252d53001d9ce8a452f0a0a5b1f5ed9db6d57f1/libfreerdp/codec/zgfx.c#L334-L355issue-tracking
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OH2ATH2BKDNKCJAU4WPPXK4SHLE3UJUV/mailing-list
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A6LLDAPEXRDJOM3PREDDD267SSNT77DP/mailing-list
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IHMTGKCZXJPQOR5ZD2I4GPDNP2DKRXMF/mailing-list
https://lists.debian.org/debian-lts-announce/2023/10/msg00008.htmlmailing-list, third-party-advisory
https://security.gentoo.org/glsa/202401-16
https://lists.debian.org/debian-lts-announce/2025/02/msg00016.html

Sources

SourceRecordLicence
CVE ListCVE-2023-40181 changed 2025-11-03CVE Terms of Use
NVDCVE-2023-40181 changed 2026-06-17Public domain