Read the docs

Reachable assertion in FreeRDP Progressive tile handling aborts clients

Priority MEDIUM 44CWE-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 · High
Fix status
Fixed

Attack profile from CVSS 3.1 · GHSA-23fv-6wrf-5hfq. Fix status from GitHub. Impact type from CWE-617.

Summary

FreeRDP 3.33.0 clients can be terminated by a malicious RDP server. A crafted Progressive tile with an x-coordinate outside the surface grid triggers an assertion failure in progressive_surface_tile_replace() and update_tiles() in builds with WITH_VERBOSE_WINPR_ASSERT enabled, which is the CMake default. An unauthenticated remote attacker who controls the server can make the client abort, and the client accepts the Progressive codec even when it did not request it. This is a reachable assertion (CWE-617).

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 client by sending a Progressive tile whose flattened cache index is valid but whose x-coordinate is outside the surface grid. The default graphics pipeline accepts the Progressive command even when the client did not request that codec. A build with `WITH_VERBOSE_WINPR_ASSERT=ON` (the CMake default) aborts. ## Details [`progressive_surface_tile_replace()`](https://github.com/FreeRDP/FreeRDP/blob/3.33.0/libfreerdp/codec/progressive.c#L466-L500) checks only `zIdx = yIdx * gridWidth + xIdx < tilesSize`; it never checks `xIdx < gridWidth`. For a 129×21825 surface, the grid is 3×342 (1026 slots). A tile with `xIdx=1024, yIdx=0` passes the flattened check, but sets `tile->x=65536`. [`update_tiles()`](https://github.com/FreeRDP/FreeRDP/blob/3.33.0/libfreerdp/codec/progressive.c#L2378-L2391) then casts that value to `UINT16` with `WINPR_ASSERTING_INT_CAST`, aborting the default build before image copy. [`checkSurfaceCommand()`](https://github.com/FreeRDP/FreeRDP/blob/3.33.0/channels/rdpgfx/client/rdpgfx_main.c#L1523-L1540) accepts the Progressive codec without checking the client's advertised codec preference. The same code remains on `master` at `55bd015` . ## Proof of concept On Linux with Xvfb, CMake, Ninja, a C compiler, and FreeRDP build dependencies, the attached patch changes only the local shadow test server. It embeds a 113-byte Progressive message, sends `CreateSurface` followed by `WireToSurface2`, and accepts `FREERDP_PROBE_VALID=1` for an otherwise identical valid `xIdx=2` control. Run the following 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/progressive_shadow_injection.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_SHADOW=ON -DWITH_CHANNELS=ON \ -DWITH_WINPR_TOOLS=ON -DWITH_KRB5=OFF -DWITH_FUSE=OFF \ -DWITH_CUPS=OFF -DWITH_PCSC=OFF -DWITH_WAYLAND=OFF \ -DWITH_FFMPEG=OFF -DWITH_GFX_H264=OFF -DWITH_GFX_AV1=OFF \ -DWITH_VERBOSE_WINPR_ASSERT=ON cmake --build build-poc --target xfreerdp freerdp-shadow-cli -j 4 Xvfb :99 -screen 0 1024x768x24 -nolisten tcp & ``` Open the next terminals in the directory where `freerdp-3.33.0` was cloned. In a second terminal, start the test server; start a fresh server process for each run: ```sh cd freerdp-3.33.0 DISPLAY=:99 build-poc/server/shadow/cli/freerdp-shadow-cli \ /bind-address:127.0.0.1 /port:38413 /sec:tls -auth \ -gfx-avc420 -gfx-avc444 -gfx-planar -gfx-rfx +gfx-progressive ``` In a third terminal, connect the unmodified client: ```sh cd freerdp-3.33.0 DISPLAY=:99 timeout 10 build-poc/client/X11/xfreerdp \ /v:127.0.0.1:38413 /u:test /p:test /sec:tls /cert:ignore ``` The v3.33.0 Release client aborted at `progressive.c:update_tiles:2386` (SIGABRT; shell status **134**) without a `/gfx` option. For the control, restart the server with `FREERDP_PROBE_VALID=1` prefixed to the same command; the client stayed connected until the test timeout (**124**). `/cert:ignore` applies only to this disposable local server. ## Impact Availability for clients whose graphics pipeline is open and whose build has verbose WinPR assertions enabled. A client need not request Progressive explicitly. One `WireToSurface2` PDU from a malicious or compromised server terminates the connecting client process.

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-23fv-6wrf-5hfq
  • FreeRDP Vendor— Affected <= 3.33.0 Fixed in 3.33.1 Patch available GHSA-23fv-6wrf-5hfq

Remediation

FreeRDP fixed versions: 3.33.1. The sources list no fixed version for FreeRDP other than 3.33.1.

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

  • Fix · GHSA-23fv-6wrf-5hfq FreeRDP Fixed in 3.33.1 Advisory →

Timeline

  1. 2026-11-17 Threatist record created from GHSA-23fv-6wrf-5hfq

References

Sources

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