Summary
CVE-2026-116785 is a critical pre-authentication heap-based buffer overflow in the mod_xml_rpc WebSocket frame handling of FreeSWITCH. All versions prior to 1.11.2 are affected. An unauthenticated remote attacker can write attacker-controlled bytes past the receive buffer, with a CVSS v3.1 score of 9.1 (Critical).
Technical details
- Root cause:
ws_read_frame()decodes a WebSocket frame’s 64-bit extended payload length using a 32-bit byte swap. The resulting length can become negative and bypass size checks (CWE-122, CWE-681, CWE-787). - Trigger conditions:
mod_xml_rpcmust be loaded and WebSocket support enabled (enable-websocket). Both are opt-in and not enabled by default. The attacker needs only TCP access to the HTTP port (default 8080) and a completed WebSocket upgrade handshake. - Attack vector: Network, no authentication. Requests are dispatched to the WebSocket handler before the HTTP digest authentication checks, so configured credentials do not protect the endpoint.
- Impact: An unbounded write of client-supplied bytes past the 64 KiB receive buffer corrupts adjacent heap memory and connection pointers. The vendor advisory lists process crashes and pointer corruption, and says remote code execution is theoretically possible with crafted payloads.
Affected software
- FreeSWITCH versions prior to 1.11.2 (1.11.1 and earlier) with
mod_xml_rpcand its WebSocket support enabled
Severity
- CVSS v3.1 base score: 9.1 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade to FreeSWITCH 1.11.2 or later.
- If you cannot patch yet:
- Leave
enable-websocketunset in themod_xml_rpcconfiguration. - Unload
mod_xml_rpcentirely. - Use a firewall to limit access to the HTTP port (default 8080) to trusted networks only.
- Leave

