Missing offset validation leading to Out-of-Bounds Read in FreeRDP
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. In affected versions a missing offset validation may lead to an Out Of Bound Read in the function `gdi_multi_opaque_rect`. In particular there is no code to validate if the value `multi_opaque_rect->numRectangles` is less than 45. Looping through `multi_opaque_rect->`numRectangles without proper boundary checks can lead to Out-of-Bounds Read errors which will likely lead to 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 vulnerability.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-39356
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 12:00 UTC · Revision 1
Source evidence
Missing offset validation leading to Out-of-Bounds Read in FreeRDP
core-osv · Original sourcePublished 31 Aug 2023, 20:50 UTC
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. In affected versions a missing offset validation may lead to an Out Of Bound Read in the function `gdi_multi_opaque_rect`. In particular there is no code to validate if the value `multi_opaque_rect->numRectangles` is less than 45. Looping through `multi_opaque_rect->`numRectangles without proper boundary checks can lead to Out-of-Bounds Read errors which will likely lead to 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 vulnerability.
osv:CVE-2023-39356
Complete source record
{
"id": "df26a38831fcbd0a9dedb5449007d2a796cf859bdcf5d93304464f715fe9dea2",
"url": "https://osv.dev/vulnerability/CVE-2023-39356",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Missing offset validation leading to Out-of-Bounds Read in FreeRDP",
"summary": "FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. In affected versions a missing offset validation may lead to an Out Of Bound Read in the function `gdi_multi_opaque_rect`. In particular there is no code to validate if the value `multi_opaque_rect->numRectangles` is less than 45. Looping through `multi_opaque_rect->`numRectangles without proper boundary checks can lead to Out-of-Bounds Read errors which will likely lead to 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 vulnerability.",
"evidence": "osv:CVE-2023-39356",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2023-39356",
"aliases": [
"CVE-2023-39356",
"GHSA-q5v5-qhj5-mh6m"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/freerdp/freerdp",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "1384b3c33b9bd7599633cc54bf20cf20ec6be83c"
},
{
"introduced": "f468a06d88c55b9ed484757326a9528cf27d33f4"
},
{
"last_affected": "d3e428c51fab65cb87901835d4d671d1d02d16d9"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.11.0"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:freerdp:freerdp:3.0.0:beta1:*:*:*:*:*:*",
"range": [
{
"introduced": "3.0.0-beta1"
},
{
"last_affected": "3.0.0-beta1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:freerdp:freerdp:3.0.0:beta2:*:*:*:*:*:*",
"range": [
{
"introduced": "3.0.0-beta2"
},
{
"last_affected": "3.0.0-beta2"
}
],
"source": "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-39356.json"
}
}
],
"modified": "2026-10-28T02:30:34.975493195Z",
"provider": "osv",
"references": [
"https://github.com/FreeRDP/FreeRDP/blob/63a2f65618748c12f79ff7450d46c6e194f2db76/include/freerdp/primary.h#L186-L196",
"https://github.com/FreeRDP/FreeRDP/blob/63a2f65618748c12f79ff7450d46c6e194f2db76/libfreerdp/core/orders.c#L1503-L1504",
"https://github.com/FreeRDP/FreeRDP/blob/63a2f65618748c12f79ff7450d46c6e194f2db76/libfreerdp/gdi/gdi.c#L723C1-L758",
"https://lists.debian.org/debian-lts-announce/2023/10/msg00008.html",
"https://lists.debian.org/debian-lts-announce/2025/02/msg00016.html",
"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.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OH2ATH2BKDNKCJAU4WPPXK4SHLE3UJUV/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/39xxx/CVE-2023-39356.json",
"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-q5v5-qhj5-mh6m",
"https://nvd.nist.gov/vuln/detail/CVE-2023-39356",
"https://security.gentoo.org/glsa/202401-16"
],
"provider_metadata": {
"cwe_ids": [
"CWE-125"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/39xxx/CVE-2023-39356.json"
}
},
"related_cves": [
{
"value": "CVE-2023-39356",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 502235,
"published_at": "2023-08-31T20:50:19.941+00:00"
}