# CVE-2026-25942: FreeRDP has global-buffer-overflow in xf\_rail\_server\_execute\_result

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-25 · Modified: 2026-02-26
- Aliases: UBUNTU-CVE-2026-25942, DEBIAN-CVE-2026-25942, ALPINE-CVE-2026-25942
- Record: https://cvemate.com/vulnerability/CVE-2026-25942 · JSON: https://cvemate.com/vulnerability/CVE-2026-25942/json

## Description

```text
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->execResult` 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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.544%, percentile 47.165%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine freerdp (Alpine Linux): \< 3.23.0-r0
- debian freerdp2 (Debian): All versions (No fix recorded)
- debian freerdp3 (Debian): \< 3.15.0+dfsg-2.1+deb13u1 \| \< 3.23.0+dfsg-1
- ubuntu freerdp (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp2 (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp3 (Ubuntu): \< 3.5.1+dfsg1-0ubuntu1.4 \| \< 3.16.0+dfsg-2ubuntu0.3
- freerdp freerdp: \< 3.23.0

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-78q6-67m7-wwf6>
- <https://github.com/FreeRDP/FreeRDP/commit/9362a0bf8dda04eedbca07d5dfaec1044e67cc6b>
- <https://github.com/FreeRDP/FreeRDP/blob/3370e30e92a021eb680892dda14d642bc8b8727c/channels/rail/client/rail_orders.c#L528>
- <https://github.com/FreeRDP/FreeRDP/blob/3370e30e92a021eb680892dda14d642bc8b8727c/channels/rail/client/rail_orders.c#L75-L76>
- <https://github.com/FreeRDP/FreeRDP/blob/3370e30e92a021eb680892dda14d642bc8b8727c/client/X11/xf_rail.c#L1014-L1017>
- <https://github.com/FreeRDP/FreeRDP/blob/3370e30e92a021eb680892dda14d642bc8b8727c/client/X11/xf_rail.c#L40-L46>
- <https://ubuntu.com/security/CVE-2026-25942>
- <https://www.cve.org/CVERecord?id=CVE-2026-25942>
- <https://ubuntu.com/security/notices/USN-8105-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-25942>
- <https://security.alpinelinux.org/vuln/CVE-2026-25942>

---

Data as of 2026-12-05T07:09:07.465Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
