CVE-2026-116779: FreeSWITCH runs API commands from an inbound SIP MESSAGE

ByLinuxtastic

November 29, 2026 #CVE, #FreeSWITCH

FreeSWITCH is the open-source telephony switch underneath a great many Linux PBXs and SIP gateways. Below 1.11.3, the code in mod_sofia that handles an inbound SIP MESSAGE splits the To user on a plus sign and treats the left-hand side as the name of a chat protocol. One of the protocols registered by mod_dptools is called api, and selecting it hands the right-hand side to switch_api_execute(), so a peer whose MESSAGE is accepted can run any FreeSWITCH API command, including the ones that run operating-system commands, with the daemon’s privileges. Inbound chat is on in the stock internal and external profiles, any authenticated account on a profile is enough, and the vanilla directory ships a user with no password. It is being exploited. If you run FreeSWITCH below 1.11.3, upgrade today, and until you do set enable-chat to false on every SIP profile that does not need inbound chat. This page shows how to check the version and the settings that matter, how to upgrade, and what to look for in the log.

CVE-2026-116779 at a glance.

ComponentFreeSWITCH’s inbound SIP MESSAGE handler, sofia_presence_handle_sip_i_message() in src/mod/endpoints/mod_sofia/sofia_presence.c, together with the api chat interface that mod_dptools registers. On Linux that is the freeswitch service, almost always installed from SignalWire’s own package repository or built from source, because Debian and Ubuntu do not package it
Affected versionsevery release up to and including 1.11.2 (SignalWire’s advisory); NVD records the same range as before 1.11.3
Fixed in1.11.3, which adds a per-profile enable-chat-api-proto setting that is off unless you set it, and bounds the To-user split in the same handler
SeverityCVSS 3.1 9.8 Critical from the GitHub CNA, repeated by NVD (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). CWE-77, CWE-78 and CWE-749
Exploited in the wildYes. Added to CISA’s Known Exploited Vulnerabilities catalogue on 9 November 2026; federal remediation due 12 November 2026. SignalWire’s advisory and the CVE record both say exploitation has been observed. EPSS 0.441 (98.8th percentile) on 23 November 2026
Who is exposedevery FreeSWITCH below 1.11.3 with a SIP profile that accepts inbound MESSAGE, which the stock internal and external profiles do unless enable-chat is false. Where MESSAGE authentication is enforced, one account on the profile is enough, including one that can only register; the vanilla directory’s default user has no password or a1-hash, so a stock configuration needs no account at all unless allow-empty-password is off. The inbound ACL does not cover MESSAGE. Not affected: 1.11.3 and later with the new setting left unset
PublishedCVE record 5 November 2026, advisory 28 October 2026; this page built 29 November 2026, last updated 29 November 2026

What it is

SIP MESSAGE is the instant-messaging request of the SIP family: a single request carrying a short body, no call set-up. FreeSWITCH turns an inbound one into a chat event, and part of that conversion looks at the user portion of the To address. If it contains a plus sign, the handler takes everything before the plus as the name of a chat protocol and everything after it as the destination for that protocol. That is a deliberate feature for routing chat to other modules. The problem, per SignalWire’s advisory, is that mod_dptools registers a chat protocol called api whose destination is a FreeSWITCH API command, and nothing stopped a network peer from selecting it. A MESSAGE addressed to api+<command> therefore ran <command> through switch_api_execute(), and the API includes system, which runs a shell. With mod_lua loaded, which the stock configuration does, inline Lua is a second way in.

The preconditions are weaker than they sound. Chat has to be enabled on the receiving profile, and it is on by default in the vanilla internal and external profiles. The MESSAGE has to be accepted, and from 1.10.7 MESSAGE requests are authenticated by default, but authentication against a profile means any one account on that profile, and the vanilla directory defines a user called default with no password and no a1-hash, plus a Skinny example in the same state. The advisory is explicit that auth-messages on its own does not close the hole, and that disable_system_api_commands removes only the system command while the route to every other API stays open.

The fix is commit 7015f6a7, merged as pull request 3135 and shipped in 1.11.3. It touches eight files, all in mod_sofia or the vanilla SIP profiles: sofia_presence.c gains a check after the plus-sign split that refuses a proto of api (compared case-insensitively) with a 403 and a log line naming the source and the requested command unless the new PFLAG_ENABLE_CHAT_API_PROTO flag is set; sofia.c and mod_sofia.h add the flag and parse a per-profile enable-chat-api-proto parameter; and the four vanilla profiles plus the sofia.conf.xml sample gain the parameter commented out, so the default is off. The 1.11.3 release notes list the same gate for mod_verto and a bound on the To-user split, which are separate commits.

Who is affected on Linux

FreeSWITCH is not in the Debian, Ubuntu or Red Hat archives; production installs come from SignalWire’s repositories (freeswitch.signalwire.com) or from a source build, and both follow the upstream version in the box above. The rows below are what each distribution tracker said on 29 November 2026; the link in a row is the tracker page.

DistributionStatusFixed package
AlpineNot consulted—
DebianNot packaged; the tracker lists only an intent-to-package bug (389591)—
UbuntuNot consulted (tracker unreachable on 29 November 2026)—
RHEL, Rocky, Alma, CentOS StreamNot consulted (tracker unreachable on 29 November 2026)—
Fedora, openSUSE/SLE, ArchNot consulted—
SignalWire packages and source buildsAffected below 1.11.3FreeSWITCH 1.11.3

How to check

Three questions, in order: which FreeSWITCH is running, does a profile accept inbound chat, and is there an account with no password that would satisfy MESSAGE authentication. Paths differ between a package install (/etc/freeswitch) and a source build (/usr/local/freeswitch/conf); the commands try both.

# 1. version: anything below 1.11.3 is affected
fs_cli -x 'version' 2>/dev/null
freeswitch -version 2>/dev/null | head -1
dpkg -l 'freeswitch*' 2>/dev/null | grep '^ii' | head -3      # SignalWire .deb packages
rpm -qa 'freeswitch*' 2>/dev/null | head -3                    # SignalWire .rpm packages

# 2. the vulnerable path: chat on, and the new gate absent
grep -rnE 'enable-chat|enable-chat-api-proto|auth-messages' /etc/freeswitch/sip_profiles /usr/local/freeswitch/conf/sip_profiles 2>/dev/null
fs_cli -x 'sofia status' 2>/dev/null

# 3. the precondition: directory users with neither a password nor an a1-hash (every file listed is worth opening)
grep -rLE 'param name="(password|a1-hash)"' /etc/freeswitch/directory /usr/local/freeswitch/conf/directory 2>/dev/null
grep -rn 'allow-empty-password' /etc/freeswitch /usr/local/freeswitch/conf 2>/dev/null

If step 1 shows 1.11.3 or later, the gate exists and is off unless step 2 shows enable-chat-api-proto set to true, in which case you have re-opened it on purpose and should know why. If step 1 shows anything older, step 2 tells you which profiles are listening: a profile with no enable-chat line has chat on, because on is the default. Step 3 is the difference between “anyone with an extension” and “anyone at all”; a default.xml with no password line is the stock vanilla directory and should not exist on a production switch regardless of this bug.

Since the listing came after exploitation, look back. A fixed build logs every refused api proto with the source address, so after upgrading the log tells you who is still trying. On an older build the trace is thinner: a MESSAGE whose To user begins with api+, and child processes of the daemon that a telephony switch has no business running.

# refused attempts (1.11.3 and later), then the raw MESSAGE pattern on any build
grep -i 'enable-chat-api-proto' /var/log/freeswitch/freeswitch.log* 2>/dev/null | tail -50
grep -i 'sip:api+' /var/log/freeswitch/freeswitch.log* 2>/dev/null | tail -50

# what the daemon has spawned: a shell, curl or wget under freeswitch is the signature
ps -o pid,user,lstart,cmd --ppid "$(pgrep -o -x freeswitch)" 2>/dev/null

A shell or a downloader running as the freeswitch user is not a false positive. The commands available through the API include reading the configuration and the directory, so treat every SIP credential on that switch as disclosed, rotate them after rebuilding, and review the call detail records for the period for calls you did not place. Restoring a Linux Server covers the rebuild.

How to fix it

Upgrade to 1.11.3 and restart the daemon; the running process keeps the old handler until it does, and a restart drops active calls, so pick the moment. The new setting defaults to off, so no configuration change is needed after the upgrade.

# SignalWire Debian/Ubuntu repository
apt update && apt install --only-upgrade 'freeswitch*'
systemctl restart freeswitch
fs_cli -x 'version'          # must show 1.11.3 or later

# SignalWire RPM repository
dnf upgrade 'freeswitch*' && systemctl restart freeswitch

# source build: check out the v1.11.3 tag, rebuild and reinstall, then restart

If you cannot upgrade in the next hour, turn off the one thing the attack needs on every profile that does not carry SIP chat, which on most PBXs is all of them. This is the only workaround in SignalWire’s advisory that closes the path.

# in each profile under sip_profiles/, inside <settings>:
#   <param name="enable-chat" value="false"/>
grep -rn 'enable-chat' /etc/freeswitch/sip_profiles /usr/local/freeswitch/conf/sip_profiles 2>/dev/null

# apply without a full restart, one profile at a time
fs_cli -x 'sofia profile internal restart'
fs_cli -x 'sofia profile external restart'
fs_cli -x 'sofia status'      # every profile should be RUNNING again

Do not stop at auth-messages or at disable_system_api_commands. The first still admits anyone holding one account on the profile, and removing the passwordless directory users only narrows it to authenticated command execution, which the advisory says is still not closed; the second removes a single API command and leaves the rest reachable. And do not count on the inbound ACL: the advisory notes that it does not apply to MESSAGE, so an address allow-list on the profile is no protection here.

Sources

Related reading

This advisory page was assembled from the primary sources listed above on 29 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.