{"id":"CVE-2023-40186","summary":"IntegerOverflow leading to Out-Of-Bound Write Vulnerability in FreeRDP","details":"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.","aliases":["GHSA-hcj4-3c3r-5j3v"],"modified":"2026-08-12T03:51:25.070798159Z","published":"2023-08-31T21:13:57.792Z","related":["ALSA-2024:2208","SUSE-SU-2023:4611-1","SUSE-SU-2023:4893-1","openSUSE-SU-2024:13504-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40186.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-190","CWE-787"]},"references":[{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/fee2b10ba1154f952769a53eb608f044782e22f8/libfreerdp/gdi/gfx.c#L1156-L1165"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/10/msg00008.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00016.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A6LLDAPEXRDJOM3PREDDD267SSNT77DP/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IHMTGKCZXJPQOR5ZD2I4GPDNP2DKRXMF/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OH2ATH2BKDNKCJAU4WPPXK4SHLE3UJUV/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40186.json"},{"type":"ADVISORY","url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-hcj4-3c3r-5j3v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40186"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202401-16"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/freerdp/freerdp","events":[{"introduced":"0"},{"fixed":"1384b3c33b9bd7599633cc54bf20cf20ec6be83c"},{"introduced":"f468a06d88c55b9ed484757326a9528cf27d33f4"},{"last_affected":"d3e428c51fab65cb87901835d4d671d1d02d16d9"}],"database_specific":{"cpe":["cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*","cpe:2.3:a:freerdp:freerdp:3.0.0:beta1:*:*:*:*:*:*","cpe:2.3:a:freerdp:freerdp:3.0.0:beta2:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0"},{"fixed":"2.11.0"},{"introduced":"3.0.0-beta1"},{"last_affected":"3.0.0-beta1"},{"introduced":"3.0.0-beta2"},{"last_affected":"3.0.0-beta2"}],"source":["CPE_RANGE","CPE_STRING"]}}],"versions":["3.0.0-beta1","3.0.0-beta2","2.10.0","2.9.0","2.8.1","2.8.0","2.7.0","2.6.1","2.6.0","2.5.0","2.4.1","2.3.2","2.3.1","2.3.0","2.2.0","2.1.2","2.1.1","2.1.0","2.0.0","2.0.0-rc4","2.0.0-rc3","2.0.0-rc2","2.0.0-rc1","2.0.0-rc0","2.0.0-beta1+android11","2.0.0-beta1+android10","1.2.0-beta1+android9","1.2.0-beta1+android7","1.1.0-beta+2013071101","1.1.0-beta1+ios4","1.1.0-beta1+android5","1.1.0-beta1+android4","1.1.0-beta1+ios3","1.1.0-beta1+ios2","1.1.0-beta1+android3","1.1.0-beta1+android2","1.1.0-beta1+ios1","1.1.0-beta1","1.0.1","1.0.0","1.0-beta5","1.0-beta4","1.0-beta2","1.0-beta1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40186.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"}]}