FreeSWITCH: RCE via SIP MESSAGE

A new analysis examines a critical vulnerability in FreeSWITCH (CVE-2026-116779) that allows system commands to be executed through incoming SIP messages. The official SignalWire advisory confirms that exploitation has been observed in the wild.
The handler sofia_presence_handle_sip_i_message() parses the To field of an incoming SIP MESSAGE, splitting the username at the + character. The left-hand part becomes the chat protocol name and is passed to switch_core_chat_send() without validating it against a list of allowed values.
One of the registered protocols is api. Its handler in mod_dptools calls switch_api_execute(), which provides access to the system command. Execution reaches popen(), allowing OS commands to be run with the privileges of the FreeSWITCH process.
The article describes a PoC that demonstrates exploitation using a single SIP MESSAGE with no body, following SIP Digest authentication on port 5060. The To header carried the api+system%20id request. The server responded with 202, queued the message, and then a worker thread ran id through popen(). The command output was returned to the attacker in a separate outbound SIP MESSAGE.
Where SIP MESSAGE authentication is enforced, any valid account in the corresponding SIP profile is sufficient. The stock vanilla configuration includes users 1000–1019, which use the default_password variable, whose default value is 1234. The stock directory also includes a default user with neither a password nor an a1-hash field. Unless allow-empty-password is set to false, this account may allow authentication without attacker-owned credentials.
FreeSWITCH 1.11.3 introduces a check for enable-chat-api-proto, returning SIP 403 Forbidden by default for incoming MESSAGE requests targeting the api chat protocol. However, the api handler itself, the registration of system and the call to popen() remain unchanged.
In the default SIP profiles, the parameter is commented out. However, uncommenting the enable-chat-api-proto setting in a profile such as /etc/freeswitch/sip_profiles/internal.xml would re-enable the previously vulnerable execution path.
The fixing commit 7015f6a7 appeared on August 26, 2026, while the security advisory was published only on October 28, 63 days later. On November 9, CISA added CVE-2026-116779 to the KEV catalog.
To mitigate the vulnerability, update to FreeSWITCH 1.11.3 or later, keep enable-chat-api-proto disabled, disable inbound SIP chat on profiles where it is not needed, and remove default or passwordless accounts.
Vulnerabilidades
Fornecedor
Produto