Vulnerability DatabaseCVE-2026-116788

CVE-2026-116788: 
FreeSWITCH vulnerability analysis and mitigation

Overview

CVE-2026-116788 is a pre-authentication heap buffer overflow vulnerability in FreeSWITCH, an open-source software telecommunications platform, caused by an integer underflow in the switch_xml_decode() function. When an XML document declares a DTD entity with an empty replacement value, the buffer size calculation underflows, resulting in an undersized heap allocation; subsequent copying overruns the buffer. All FreeSWITCH versions prior to 1.11.2 are affected. The vulnerability was published on November 5, 2026, and fixed in version 1.11.2. It carries a CVSS v3.1 base score of 8.2 (High) (GitHub Advisory, Red Hat).

Technical details

The root cause is an integer underflow (CWE-191) in switch_xml_decode() that leads to an incorrect buffer size calculation (CWE-131) and a subsequent heap-based buffer overflow (CWE-122/CWE-787). When a DTD entity with an empty replacement value is declared, the subtraction used to size the allocation wraps around, producing a value smaller than needed by the length of the entity name plus two bytes. The copy that follows writes the remainder of the document past the end of the allocation, giving the attacker control over both the overflow length and its contents. The PIDF body of a SIP PUBLISH request is parsed before any digest, registration, or ACL check, meaning a single unauthenticated network request to a SIP profile with manage-presence enabled and DTD processing permitted is sufficient to trigger the flaw; TLS does not mitigate this because parsing occurs after transport termination (GitHub Advisory).

Impact

Successful exploitation corrupts heap memory and terminates the FreeSWITCH process, immediately interrupting all active calls on the affected system — a severe availability impact for any telephony or unified communications deployment. While remote code execution has not been demonstrated, the attacker controls both the overflow length and content, leaving open the theoretical possibility of further exploitation. Confidentiality impact is assessed as none, and integrity impact is low (GitHub Advisory, Red Hat Bugzilla).

Exploitability

No public proof-of-concept exploit code has been observed, and there is no evidence of in-the-wild exploitation at this time (GitHub Advisory). The vulnerability is classified as automatable (no user interaction, no credentials required), making it attractive for mass scanning. The EPSS score is approximately 0.41%, reflecting a currently low but non-negligible probability of exploitation. The CVE is not listed in the CISA Known Exploited Vulnerabilities catalog. Credit for discovery goes to researcher Olivier Laflamme (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify internet-facing FreeSWITCH instances (versions < 1.11.2) using tools like Shodan or Censys, searching for SIP services on UDP/TCP port 5060 or 5061. Confirm the target SIP profile has manage-presence=true (the default internal profile) and DTD processing enabled.
  2. Craft malicious SIP PUBLISH request: Construct a SIP PUBLISH message targeting the presence handler. The message body (PIDF/XML) must include an internal DTD subset that declares an entity with an empty replacement value, e.g., <!DOCTYPE foo [<!ENTITY e "">]> followed by a reference to &e; in the document body.
  3. Send the request unauthenticated: Transmit the crafted SIP PUBLISH to the target listener. No prior registration, credentials, or ACL bypass is required — the PIDF body is parsed before any authentication check runs. A single request is sufficient.
  4. Trigger integer underflow and heap overflow: The switch_xml_decode() function computes an undersized buffer allocation due to the integer underflow, then copies the remainder of the XML document past the end of the allocation, corrupting heap memory.
  5. Achieve denial of service: The heap corruption causes the FreeSWITCH process to crash, terminating all active calls on the system (GitHub Advisory).

Indicators of compromise

  • Network: Unexpected SIP PUBLISH requests from unknown or untrusted source IPs targeting port 5060/5061; PUBLISH message bodies containing XML with internal DTD subsets (e.g., <!DOCTYPE or <!ENTITY declarations) in PIDF payloads.
  • Logs: FreeSWITCH log entries showing crashes or segmentation faults originating from switch_xml_decode() or the presence/PIDF handler; abrupt process termination events correlated with inbound SIP PUBLISH traffic.
  • Process: Unexpected termination of the freeswitch process (exit code indicating signal, e.g., SIGSEGV or SIGABRT); core dump files generated in the FreeSWITCH working directory following a crash.
  • File System: Presence of core dump files (e.g., core.*) in the FreeSWITCH installation or working directory, timestamped around the time of suspicious SIP PUBLISH activity (GitHub Advisory, Red Hat Bugzilla).

Mitigation and workarounds

Upgrade FreeSWITCH to version 1.11.2 or later, which fixes the integer underflow by correctly computing the replacement length before the comparison and handling empty entity replacements in place without an undersized allocation (FreeSWITCH v1.11.2 Release). If immediate patching is not feasible, three workarounds are available: (1) set the xml_disable_dtd core variable (available since 1.11.0) to prevent DTD processing entirely; (2) set manage-presence=false on SIP profiles exposed to untrusted networks, which prevents PUBLISH requests from reaching the presence handler (note: this disables BLF and presence features); or (3) restrict the affected SIP listener to trusted networks via firewall rules, bind address configuration, or SIP ACLs (GitHub Advisory).

Community reactions

The vulnerability was disclosed via a GitHub Security Advisory by SignalWire maintainer andywolk and credited to researcher Olivier Laflamme (GitHub Advisory). Red Hat tracked the issue via Bugzilla and assigned it high severity/priority (Red Hat Bugzilla). Community discussion was observed on Mastodon/infosec.exchange and Bluesky shortly after publication, and the vulnerability was indexed by multiple threat intelligence aggregators including VulDB and OSV. The FreeSWITCH v1.11.2 release notes explicitly highlighted the fix and strongly encouraged all users to upgrade promptly (FreeSWITCH v1.11.2 Release).

Additional resources


Source: This report was generated using AI

Related FreeSWITCH vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-119293CRITICAL9.3
  • FreeSWITCH logoFreeSWITCH
  • cpe:2.3:a:freeswitch:freeswitch
NoYesNov 17, 2026
CVE-2026-116790CRITICAL9.1
  • FreeSWITCH logoFreeSWITCH
  • freeswitch
NoYesNov 05, 2026
CVE-2026-119292HIGH8.7
  • FreeSWITCH logoFreeSWITCH
  • cpe:2.3:a:freeswitch:freeswitch
NoYesNov 17, 2026
CVE-2026-116788HIGH8.2
  • FreeSWITCH logoFreeSWITCH
  • cpe:2.3:a:freeswitch:freeswitch
NoYesNov 05, 2026
CVE-2026-116789HIGH7.4
  • FreeSWITCH logoFreeSWITCH
  • cpe:2.3:a:freeswitch:freeswitch
NoYesNov 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management