{"id":"CVE-2026-25942","summary":"FreeRDP has global-buffer-overflow in xf_rail_server_execute_result","details":"FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, `xf_rail_server_execute_result` indexes the global `error_code_names[]` array (7 elements, indices 0–6) with an unchecked `execResult-\u003eexecResult` value received from the server, allowing an out-of-bounds read when the server sends an `execResult` value of 7 or greater. Version 3.23.0 fixes the issue.","aliases":["GHSA-78q6-67m7-wwf6"],"modified":"2026-08-18T18:38:45.756371Z","published":"2026-02-25T20:01:16.472Z","related":["SUSE-SU-2026:1632-1","SUSE-SU-2026:1633-1","SUSE-SU-2026:1634-1","SUSE-SU-2026:1635-1","SUSE-SU-2026:1640-1","SUSE-SU-2026:21436-1","openSUSE-SU-2026:10408-1","openSUSE-SU-2026:10611-1","openSUSE-SU-2026:20632-1","openSUSE-SU-2026:20657-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-125"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25942.json"},"references":[{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/3370e30e92a021eb680892dda14d642bc8b8727c/channels/rail/client/rail_orders.c#L528"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/3370e30e92a021eb680892dda14d642bc8b8727c/channels/rail/client/rail_orders.c#L75-L76"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/3370e30e92a021eb680892dda14d642bc8b8727c/client/X11/xf_rail.c#L1014-L1017"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/3370e30e92a021eb680892dda14d642bc8b8727c/client/X11/xf_rail.c#L40-L46"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25942.json"},{"type":"ADVISORY","url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-78q6-67m7-wwf6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25942"},{"type":"FIX","url":"https://github.com/FreeRDP/FreeRDP/commit/9362a0bf8dda04eedbca07d5dfaec1044e67cc6b"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/freerdp/freerdp","events":[{"introduced":"0"},{"fixed":"b933ae18d9ad2a1d73c610868fcc30eb61654070"},{"fixed":"9362a0bf8dda04eedbca07d5dfaec1044e67cc6b"}],"database_specific":{"cpe":"cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.23.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["3.5.1","3.5.0","3.4.0","3.3.0","3.2.0","3.1.0","3.0.0","3.0.0-rc0","3.0.0-beta4","3.0.0-beta3","3.0.0-beta2","3.0.0-beta1","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/osv-test-cve-osv-conversion/osv-output/CVE-2026-25942.json","vanir_signatures_modified":"2026-08-18T18:38:45Z","vanir_signatures":[{"deprecated":false,"digest":{"function_hash":"157890305385061828128230911050819752003","length":1874},"id":"CVE-2026-25942-2f251737","signature_type":"Function","signature_version":"v1","source":"https://github.com/freerdp/freerdp/commit/9362a0bf8dda04eedbca07d5dfaec1044e67cc6b","target":{"file":"client/X11/xf_rail.c","function":"xf_rail_server_local_move_size"}},{"deprecated":false,"digest":{"function_hash":"267124141617776130271641569418904159883","length":404},"id":"CVE-2026-25942-c2293b38","signature_type":"Function","signature_version":"v1","source":"https://github.com/freerdp/freerdp/commit/9362a0bf8dda04eedbca07d5dfaec1044e67cc6b","target":{"file":"client/X11/xf_rail.c","function":"xf_rail_server_execute_result"}},{"digest":{"line_hashes":["274792506874496459102604060627999557217","29704318137324166710309174109218349109","31522409616958130870131943800227995537","12977601552747420968993811422479196633","199278152836243997604550025689589771633","118338195321814439701537094657011138603","219223886182103059882893669593964507322","317385643421685847198600480704453259078","90529802712866483965844210489042596985","316712593381048293977765921124381541310","97345523466641465107632473391092633639","251841573929820098642733185876484597220","220196689429657012139337965585673273344","180758401460344006522499221283605824064","313661415332558818444818504732083689651","42970504393761082028920301355591076415","89306845340069181431925794348709493775","245390707900901727689720048044021199326","82747945917009993361871585712100795486","185761012378332362506204018860787916326","328865994769667443121189605775337657290","318097991016844082661668884981046811131","22598601961555198442481319427116310949","60007811062762010104299274604893722117","309168506121792150715190534016009843880","63536757678551712197685887136733869493"],"threshold":0.9},"id":"CVE-2026-25942-ecf637d5","signature_type":"Line","signature_version":"v1","source":"https://github.com/freerdp/freerdp/commit/9362a0bf8dda04eedbca07d5dfaec1044e67cc6b","target":{"file":"client/X11/xf_rail.c"},"deprecated":false}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"}]}