cve.bz

CVE-2026-59250 erlang otp: Classic Buffer Overflow

8.3 highEPSS 0.8%

High (8.3) in erlang otp. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
Classic buffer overflow in the Erlang/OTP megaco flex scanner C driver allows a remote unauthenticated attacker to corrupt the driver's memory (and potentially achieve remote code execution or a denial-of-service crash) by sending a single text-encoded H.248/Megaco message containing an oversized property parm name. When tokenizing a Local/Remote descriptor, mfs_load_property_groups extracts the attacker-controlled property name (bounded only by the message length) and, when no value follows, formats it into a fixed 512-byte error_msg field of the MfsErlDrvData struct using an unchecked sprintf call. Names longer than roughly 452 bytes overflow into the immediately following struct fields (text_buf, text_ptr, term_spec, term_spec_size, term_spec_index), overwriting live pointers and counters with attacker-chosen bytes. Subsequent scanner code writes and frees through the corrupted pointers, producing arbitrary write and arbitrary free primitives inside the BEAM VM process, which can be leveraged for remote code execution. On builds compiled with _FORTIFY_SOURCE the overflow is detected at runtime and terminates the process with SIGABRT, resulting in denial of service. The overflow occurs in the flex scanner before any grammar or Megaco-level authentication processing, so exploitation requires only network reachability to the megaco transport port on a node configured with {scanner, flex}. This vulnerability is associated with program files lib/megaco/src/flex/megaco_flex_scanner_drv.flex.src and program routines mfs_load_property_groups. This issue affects OTP from OTP 17.0 before OTP 27.3.4.15, from OTP 28.0 before OTP 28.5.0.4, and from OTP 29.0 before OTP 29.0.4, corresponding to megaco from 3.17.1 before 4.7.2.2, from 4.8 before 4.8.3.1, and from 4.9 before 4.9.1. Whether OTP before OTP 17.0, corresponding to megaco before 3.17.1, is affected is unknown.

Severity

CVSS 4.0

8.3 high
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-59250 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-59250?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-59250?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-59250 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Erlang OTPfrom 17.0 before 27.3.4.15
Erlang OTPfrom 28.0 before 28.5.0.4
Erlang OTPfrom 29.0 before 29.0.4
Erlang OTPfrom 3.17.1 before 4.7.2.2
Erlang OTPfrom 4.8 before 4.8.3.1
Erlang OTPfrom 4.9 before 4.9.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12erlangno fix listedDEBIAN-CVE-2026-59250
Debian13erlang1:27.3.4.1+dfsg-1+deb13u3DEBIAN-CVE-2026-59250
Debian14erlang1:29.0.4+dfsg-1DEBIAN-CVE-2026-59250
Ubuntu22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.7UBUNTU-CVE-2026-59250 USN-8827-1
Ubuntu24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.7UBUNTU-CVE-2026-59250 USN-8827-1
Ubuntu26.04:LTSerlang1:27.3.4.6+dfsg-1ubuntu0.1UBUNTU-CVE-2026-59250 USN-8827-1
UbuntuPro:14.04:LTSerlang1:16.b.3-dfsg-1ubuntu2.2+esm2UBUNTU-CVE-2026-59250 USN-8827-1
UbuntuPro:16.04:LTSerlang1:18.3-dfsg-1ubuntu3.1+esm3UBUNTU-CVE-2026-59250 USN-8827-1
UbuntuPro:18.04:LTSerlang1:20.2.2+dfsg-1ubuntu2+esm3UBUNTU-CVE-2026-59250 USN-8827-1
UbuntuPro:20.04:LTSerlang1:22.2.7+dfsg-1ubuntu0.5+esm2UBUNTU-CVE-2026-59250 USN-8827-1
Red Hathummingbird:1erlang27, erlang27-et, erlang27-wx and 36 more0:27.3.4.15-0.1.hum1RHSA-2026:47009
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreerlang23.3.4.19-150300.3.39.1SUSE-SU-2026:3645-1
SUSELinux Enterprise Module for Server Applications 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6erlang2626.2.1-150300.7.28.1SUSE-SU-2026:3579-1
openSUSETumbleweederlang28.5.0.4-1.1openSUSE-SU-2026:11559-1
openSUSETumbleweederlang2727.1.3-3.1openSUSE-SU-2026:11560-1
Azure Linux3erlang26.2.5.21-6AZL-95666

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Hardened Imageserlang27-main-27.3.4.15-0.1.hum1Fixed 2026-07-28RHSA-2026:47009

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-59250.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON