Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify libesl-linked client target
-
DeliveryPosition as rogue or MITM ESL peer
-
ExploitSend ESL frame with negative Content-Length
-
ExecutionTrigger atol() into malloc() size confusion
-
PersistCorrupt client heap on body read
-
ImpactCrash process or pivot to code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | The victim must be a process linked against libesl that initiates or accepts an ESL connection to a peer the attacker can either control directly or sit on-path between (man-in-the-middle), and exploitation occurs before the client authenticates to that peer, so no FreeSWITCH credentials are required. The attacker must be able to deliver an ESL frame containing a negative Content-Length header value to esl_recv_event() - meaning network reachability to the libesl client's ESL session is required, but no special configuration toggle or non-default mode is needed because Content-Length parsing is on the default ESL receive path. Limiting factors are that the target deployment must actually use a libesl-linked client (FreeSWITCH server-only deployments that never run libesl tooling are not directly exposed), that the attacker must be a peer or MITM rather than an unrelated internet attacker, and that the bug exists only in FreeSWITCH versions below 1.11.1. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H indicates a network-reachable, low-complexity, unauthenticated bug with high integrity and availability impact but no confidentiality impact, which aligns with a heap-corruption-or-crash primitive rather than data disclosure. The Tags label this as a Denial of Service issue, but the underlying heap corruption primitive theoretically permits more than crashing, so the realistic worst case may be higher than DoS alone - confirmation would require exploit research that is not present in the provided data. There is no CISA KEV listing, no public exploit identified at time of analysis, and no EPSS score provided in the input, so real-world targeting signal is weak; however, the bug is reachable before authentication and the direction of attack is unusual (a malicious or MITM ESL server attacking the client), so priority should be elevated for any deployment where libesl-linked tooling connects to untrusted or network-exposed ESL endpoints. SSVC-style assessment: exploitation status none-observed, automatable likely (single crafted frame), technical impact partial-to-total depending on heap layout - a real priority for affected deployments, not a paper tiger. |
| Exploit ScenarioDerived | An attacker who controls an ESL endpoint that a victim libesl-linked client connects to - for example a rogue FreeSWITCH server, a compromised orchestration node, or an on-path attacker between a monitoring script and a legitimate FreeSWITCH host - responds to the client's connection with a crafted ESL frame whose Content-Length header is a negative integer such as -1. When the client calls esl_recv_event(), atol() returns the negative value, malloc(len + 1) is invoked with a size that wraps to a huge unsigned quantity or fails, and the subsequent body read corrupts the heap, crashing the client process or potentially yielding further memory-corruption primitives - all before the client authenticates to the peer. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 09, 2026
Heap corruption in FreeSWITCH libesl prior to version 1.11.1 allows a malicious or man-in-the-middle Event Socket Library (ESL) peer to crash or corrupt the memory of any process linked against libesl by sending a frame containing a negative Content-Length header. The flaw is pre-authentication and reachable before the client completes authentication to the peer, and no public exploit identified at time of analysis despite a CVSS of 9.1.
RemediationAI
The primary fix is to upgrade to vendor-released patch FreeSWITCH 1.11.1, available at https://github.com/signalwire/freeswitch/releases/tag/v1.11.1, which adds Content-Length validation in esl_recv_event per the 'libesl: Validate Content-Length in esl_recv_event' entry in the release notes; the security advisory is at https://github.com/signalwire/freeswitch/security/advisories/GHSA-g597-9fgg-ghg9. Operators who cannot immediately upgrade should restrict outbound ESL connections from libesl-linked clients to known, trusted FreeSWITCH servers only, ideally over a private management network or mutually authenticated TLS tunnel, since the trade-off is that any path that allows a MITM or rogue ESL peer between client and server is sufficient to trigger the bug regardless of FreeSWITCH-level authentication. Network-layer compensating controls include firewalling the ESL port (default TCP 8021) so that libesl-linked clients can only reach vetted endpoints, accepting the side effect that legitimate cross-network ESL automation will need to be re-routed.
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
FreeSWITCH is an open-source Software Defined Telecom Stack from SignalWire used to build VoIP, PBX, and real-time communications platforms. The vulnerability resides in libesl, the client library implementing the FreeSWITCH Event Socket Layer (ESL) protocol used to send commands and receive events from a FreeSWITCH server. Specifically, esl_recv_event() reads the Content-Length header from an inbound ESL frame, converts it with atol() (which returns a signed long), and passes the result directly to malloc(len + 1) without sign or magnitude validation. This is a textbook CWE-20 Improper Input Validation: a negative value bypasses any implicit bounds expectation and, after the +1 arithmetic, is reinterpreted as a huge size_t by malloc, producing allocation failure or undersized buffers that subsequent reads overflow, corrupting the heap of the client process.
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:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
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 version 1.11.1, esl_recv_event() parses Content-Length with atol() and passes the result straight to malloc(len + 1) with no sign or magnitude check. A malicious or man-in-the-middle ESL peer can send a frame with a negative Content-Length to corrupt the heap of, or crash, any process linked against libesl, before the client has authenticated to that peer. This issue has been patched in version 1.11.1.
Executive ViewAI
FreeSWITCH libesl contains a pre-authentication heap corruption vulnerability (CVE-2026-49840, CVSS 9.1) affecting any system running this communications library. A remote attacker can crash the process or corrupt memory without authentication, with no public exploit identified but no vendor patch currently available. Organizations using FreeSWITCH for voice, video, or messaging infrastructure face potential denial of service and system instability with limited remediation options.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Network segmentation-restrict ESL port access to trusted peer systems only; (2) Disable ESL protocol entirely if not operationally required; (3) Implement rate limiting on ESL connection attempts; (4) Deploy intrusion detection monitoring for malformed frame patterns with negative Content-Length headers; (5) Maintain process restart/failover mechanisms to limit DoS impact; (6) Plan emergency upgrade path once patch becomes available.
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
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Related Vulnerabilities in FreeSWITCH Multiple Vulnerabilities
View all 9More 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-35471
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB