{"id":"CVE-2023-40574","summary":"Out-Of-Bounds Write 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 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.","aliases":["GHSA-422p-gj6x-93cw"],"modified":"2026-03-20T12:30:01.572808Z","published":"2023-08-31T21:39:17.151Z","related":["SUSE-SU-2023:4611-1","SUSE-SU-2023:4893-1","openSUSE-SU-2024:13815-1","openSUSE-SU-2024:13816-1","openSUSE-SU-2026:20339-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40574.json"},"references":[{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5be5553e0da72178a4b94cc1ffbdace9ceb153e5/libfreerdp/primitives/prim_YUV.c#L414-L445"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40574.json"},{"type":"ADVISORY","url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-422p-gj6x-93cw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40574"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202401-16"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/freerdp/freerdp","events":[{"introduced":"f468a06d88c55b9ed484757326a9528cf27d33f4"},{"fixed":"59a5726ab36338776539192cae2563951d0ce94b"}]}],"versions":["3.0.0-beta1","3.0.0-beta2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-40574.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"}]}