FreeRDP client aborts on a clipboard file range request
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · GHSA-m6hp-4798-x78x. Fix status from GitHub. Impact type from CWE-617.
Summary
FreeRDP up to and including 3.33.0 has a reachable assertion (CWE-617) in its clipboard file transfer code. After a user copies a local file, a malicious RDP server can send one file range request with an offset above INT64_MAX, which aborts the client process. Clipboard file transfer is enabled by default, but the user must copy a file during the session.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
Description from the GitHub advisory
## Summary After a user copies a local file, a malicious RDP server can terminate a FreeRDP 3.33.0 client with one `FILECONTENTS_RANGE` request whose offset has its high bit set. Clipboard file transfer is enabled by default; a build with `WITH_VERBOSE_WINPR_ASSERT=ON` (the CMake default) aborts before seeking the file. ## Details [`cliprdr_file_context_server_file_range_request()`](https://github.com/FreeRDP/FreeRDP/blob/3.33.0/client/common/client_cliprdr_file.c#L1874-L1912) combines server-controlled `nPositionHigh` and `nPositionLow` into a `UINT64` offset. With `nPositionHigh=0x80000000`, `nPositionLow=0`, the offset is `0x8000000000000000`; `WINPR_ASSERTING_INT_CAST(int64_t, offset)` fails on the sign change and aborts before `_fseeki64` can reject it. The callback is registered even with `WITH_FUSE=OFF`. The source file is unchanged on `master` at `a5d85a3` (checked November 5, 2026). ## Proof of concept On Linux with X11 development headers, Xvfb, `xdpyinfo`, `xclip`, `xdotool`, OpenSSL, CMake, Ninja, and a C compiler, use the attached `server.patch` and `run_case.sh`. The patch changes only the local sample server. The script creates a 1 KiB file, copies its `file://` URI into the clipboard, focuses the client, then runs the same TLS exchange with offset zero and the malformed high offset. Run from a disposable directory containing `poc.zip`: ```sh unzip poc.zip -d poc git clone --depth 1 --branch 3.33.0 https://github.com/FreeRDP/FreeRDP.git freerdp-3.33.0 cd freerdp-3.33.0 git apply ../poc/server.patch cmake -S . -B build-poc -G Ninja -DCMAKE_BUILD_TYPE=Release \ -DWITH_CLIENT=ON -DWITH_SERVER=ON -DWITH_SAMPLE=ON \ -DWITH_X11=ON -DWITH_CLIENT_SDL=OFF -DWITH_FUSE=OFF \ -DWITH_CUPS=OFF -DWITH_KRB5=OFF -DWITH_VERBOSE_WINPR_ASSERT=ON cmake --build build-poc --target xfreerdp sfreerdp-server -j 4 BUILD_DIR="$PWD/build-poc" bash ../poc/run_case.sh control BUILD_DIR="$PWD/build-poc" bash ../poc/run_case.sh attack ``` The stock 3.33.0 Release client stayed alive until timeout (**124**) for offset zero. With high offset `0x80000000_00000000`, it exited **134 (SIGABRT)** at `client_cliprdr_file.c:1890`; the server requested only one byte. The script prints the directory containing its certificate and client logs. `/cert:ignore` applies only to its disposable local TLS server. ## Impact Client availability when a user copies a local file during a clipboard-enabled RDP session. The server can then send a malformed file range request that terminates the client process. File clipboard transfer is enabled by default, but the user action is required. The E2E result was obtained with Linux X11 `xfreerdp`.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | FreeRDP | <= 3.33.0 | 3.34.0 | Patch available | GHSA-m6hp-4798-x78x |
- FreeRDP Vendor— Affected <= 3.33.0 Fixed in 3.34.0 Patch available GHSA-m6hp-4798-x78x
Remediation
Fixed in FreeRDP 3.34.0.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
- Fix · GHSA-m6hp-4798-x78x FreeRDP Fixed in 3.34.0 Advisory →
Timeline
- 2026-12-03 Threatist record created from GHSA-m6hp-4798-x78x
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences