Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject 4-byte UTF-8 into serialized value
-
ExploitFreeSWITCH escapes text in switch_xml_ampencode
-
ExecutionNUL written one byte past heap buffer
-
ImpactProcess abort or adjacent object truncated
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Off-by-one prevention
|
| Exploitation Conditions | The attacker must be able to place caller-controlled text containing a four-byte UTF-8 sequence into a value that FreeSWITCH later serializes to XML - concretely a caller ID, a SIP header value, or a channel variable - using whatever access the carrying surface requires (PR:L authenticated per the CVSS vector). At least one XML-serializing surface must be active: mod_xml_cdr, mod_format_cdr, the conference CDR writer, Event Socket output consumed in XML format, or XML API output such as the 'show' and registration dumps. UTF-8 escaping is a compile-time default of the serializer with no runtime switch, so it cannot be disabled by configuration. Exploitation is strongly LIMITED by being probabilistic: the escape must fall on the single per-buffer-growth offset where the reserved headroom is exactly consumed, so an attacker reaches it only across repeated attempts that vary surrounding content length (AC:H). The only exposure reduction is to stop serializing remote-supplied text (unload mod_xml_cdr/mod_format_cdr, consume Event Socket events in plain rather than XML format), at the cost of those features; updating to 1.11.2 is the only complete fix. |
| Impact | This is a genuine but modest-priority memory-safety flaw, not a high-impact emergency. The supplied CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H, base 5.9) is internally consistent with the advisory: network-reachable but requiring some level of access to inject the triggering value (PR:L), high attack complexity because the one-byte write only lands when a four-byte UTF-8 escape falls on the exact buffer-growth offset (AC:H, reachable only across repeated attempts), no confidentiality impact (C:N), limited integrity impact from a possible adjacent-object truncation (I:L), and high availability impact from a process abort (A:H). The dominant real-world outcome is denial of service (FreeSWITCH process crash); the vendor states explicitly that RCE has not been demonstrated and the overflow is a single byte of fixed value (0x00), so the attacker controls timing but not content. No EPSS score, no CISA KEV listing, and no public exploit code are present in the input, and the vuln.today decision label is 'this_month' rather than act_now/emergency - all consistent with a patch-this-cycle item rather than a drop-everything one. Note a conflict to verify: the input Tags include 'RCE', but the authoritative GHSA advisory states code execution was not demonstrated and describes only a fixed zero-byte write - treat the RCE tag as inaccurate. |
| Exploit ScenarioDerived | A party able to place text into a value FreeSWITCH later serializes to XML - such as a caller ID, a SIP header, or a channel variable - embeds a four-byte UTF-8 sequence (e.g. U+10FFFF). When mod_xml_cdr, a conference/format CDR writer, an Event Socket XML event, or an XML API dump serializes that value and the widest numeric-character-reference escape lands exactly on the reserved-headroom boundary, sprintf writes its terminating NUL one byte past the heap allocation. By varying the length of surrounding content across repeated attempts the sender can eventually hit the boundary, crashing the process or truncating an adjacent object. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 05, 2026
An off-by-one heap write in FreeSWITCH 1.11.1 and earlier lets a remote party who can place text into a value that the platform later serializes to XML (caller ID, SIP header, channel variable) push a single NUL byte one past the end of the destination buffer in switch_xml_ampencode(). The result is a process abort that takes FreeSWITCH down, or a neighboring heap object silently truncated at its first byte; remote code execution has not been demonstrated. Exploitation is probabilistic rather than reliable - the escape must land on the one offset per buffer-growth cycle where the ten reserved bytes are exactly consumed - so impact is bounded to denial of service and limited integrity damage, and no public exploit has been identified at time of analysis. Fixed in 1.11.2.
RemediationAI
Upgrade to FreeSWITCH 1.11.2, the version in which switch_xml_ampencode() reserves eleven bytes for the widest escape plus its terminator and writes it with snprintf; the release is at https://github.com/signalwire/freeswitch/releases/tag/v1.11.2 and the change is in commit 28fcfd26246c112fa4b9e698433d09e4836ca1b5, documented in advisory GHSA-r6vh-qmwm-h3cc. No configuration setting disables the affected path, since UTF-8 escaping is a compile-time default of the serializer, and updating is the only complete fix. Where upgrading cannot be scheduled immediately, narrow exposure by not serializing remote-supplied text: unload mod_xml_cdr and mod_format_cdr and consume Event Socket events in plain format rather than XML - at the cost of losing those CDR and XML event features. Note that only an abort of the FreeSWITCH process or truncation of an adjacent object has been described; remote code execution has not been demonstrated.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
switch_xml_ampencode() in src/switch_xml.c is the core escaper that renders FreeSWITCH XML trees back into documents, replacing special characters and non-ASCII text with entity or numeric character references. Its longest output is the numeric reference "" for a four-byte UTF-8 sequence, ten characters wide, and the buffer-growth loop reserved exactly ten bytes of headroom. Because sprintf() reports only the ten data characters, the terminating NUL it writes afterwards fell outside the function's own length accounting and landed one byte past the heap allocation when such a sequence was escaped at the exact growth boundary - a classic CWE-193 off-by-one (also scored CWE-787 out-of-bounds write) whose written value is fixed at zero, so an attacker can influence when the overwrite occurs but not what is written. UTF-8 escaping is a compile-time default of the serializer with no runtime switch, so every path that serializes remote-supplied text into XML reaches it: CDR records from mod_xml_cdr and mod_format_cdr, the conference CDR writer, Event Socket events delivered in XML format, and XML API output such as the 'show' and registration dumps. The fix widens the reservation to eleven bytes and replaces the unbounded sprintf with snprintf bounded to the remaining space; the emitted escapes are unchanged and only the reallocation point moves by one byte.
Know when Freeswitch gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Network-reachable but triggering requires injecting a value and hitting an exact buffer offset across repeated attempts (AC:H) with some injection access (PR:L); crash gives A:H, possible truncation I:L, no disclosure (C:N).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a software implementation that runs on any commodity hardware. Prior to 1.11.2, switch_xml_ampencode() reserved only ten bytes for the widest numeric character reference produced from a four-byte UTF-8 sequence, omitting space for the terminating NUL. When remote-supplied text was serialized at the exact buffer-growth boundary, the terminator wrote one byte beyond the heap allocation. Reachable surfaces include mod_xml_cdr, conference and formatted CDR XML, XML Event Socket output, and XML API output that serializes caller-controlled values. The fixed zero-byte write can abort the process or truncate an adjacent object, while remote code execution has not been demonstrated. This issue is fixed in version 1.11.2.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
More in Freeswitch
View allFreeSWITCH installations that accept inbound SIP MESSAGE - the default posture, since chat handling stays on in the stoc
FreeSWITCH 1.6.10 through 1.10.1 has a default password in event_socket.conf.xml. Rated critical severity (CVSS 9.8), th
Heap-based buffer overflow in the parse_string function in libs/esl/src/esl_json.c in FreeSWITCH before 1.4.23 and 1.6.x
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to
An issue was discovered in function sofia_handle_sip_i_notify in sofia.c in SignalWire freeswitch before 1.10.6, may all
FreeSWITCH through 1.8.2, when mod_xml_rpc is enabled, allows remote attackers to execute arbitrary commands via the api
Multiple buffer overflows in the switch_perform_substitution function in switch_regex.c in FreeSWITCH 1.2 allow remote a
Heap out-of-bounds read in Sofia-SIP through 1.13.18 allows unauthenticated remote attackers to crash SIP processes by s
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to
EUVD-2026-117731
NVD
CVE.org
EPSS
GitHub
Exploit-DB