CVE-2026-49840 FreeSWITCH: Pre-authentication heap buffer overflow in libesl `Content-Length` parsing

Critical 9.1 Published Updated

A pre-authentication heap buffer overflow in FreeSWITCH's libesl allows attackers to execute code or crash the service via malicious Content-Length headers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-49840?

CVE-2026-49840 is a critical memory corruption vulnerability in signalwire freeswitch, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-787, CWE-20, CWE-195, CWE-122

Which versions are affected by CVE-2026-49840?

It affects 1 product.

Products include Freeswitch Freeswitch.

How do I fix CVE-2026-49840?

No fix has been published for CVE-2026-49840 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-49840 being exploited?

There is no known exploitation of CVE-2026-49840 in the wild and no public exploit code.

Sources

Also known as GHSA-g597-9fgg-ghg9.

Is CVE-2026-49840 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free