ADVISORIES

Vulnerability

CVE-2026-59250

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, OTP 28.5.0.4, and OTP 29.0.4, corresponding to megaco from 3.17.1 before 4.7.2.2, 4.8.3.1, and 4.9.1. Whether OTP before OTP 17.0, corresponding to megaco before 3.17.1, is affected is unknown.

15 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • AZL-95666

    CVE-2026-59250 affecting package erlang for versions less than 26.2.5.21-6

    CVE-2026-59250 Azure Linux Updated 23 November 2026
  • CNA-CVE-2026-59250

    Megaco flex scanner buffer overflow via oversized property parm name

    CVE-2026-59250 Erlang Updated 20 November 2026
  • DEBIAN-CVE-2026-59250

    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)…

    CVE-2026-59250 Debian Updated 20 November 2026
  • DSA-6464-1

    erlang - security update

    CVE-2026-28808CVE-2026-28810CVE-2026-32144CVE-2026-32147 Debian Updated 20 November 2026
  • OESA-2026-3463

    erlang security update

    High CVE-2026-42792CVE-2026-55737CVE-2026-55953CVE-2026-58227 openEuler Updated 20 August 2026
  • OESA-2026-3464

    erlang security update

    High CVE-2026-42792CVE-2026-55737CVE-2026-55953CVE-2026-58227 openEuler Updated 20 August 2026
  • OESA-2026-3465

    erlang security update

    High CVE-2026-42792CVE-2026-55737CVE-2026-55953CVE-2026-58227 openEuler Updated 20 August 2026
  • RHSA-2026:47009

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2026-42792CVE-2026-54890CVE-2026-55953CVE-2026-59250 Red Hat Updated 23 November 2026
  • SUSE-SU-2026:3579-1

    Security update for erlang26

    CVE-2026-28810CVE-2026-42789CVE-2026-42790CVE-2026-42792 SUSE Updated 12 August 2026
  • SUSE-SU-2026:3645-1

    Security update for erlang

    CVE-2026-28810CVE-2026-42789CVE-2026-42790CVE-2026-42792 SUSE Updated 21 August 2026
  • SUSEVEX-CVE-2026-59250

    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)…

    Moderate CVE-2026-59250 SUSEopenSUSE Updated 9 September 2026
  • UBUNTU-CVE-2026-59250

    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)…

    CVE-2026-59250 Ubuntu Updated 28 September 2026
  • USN-8827-1

    erlang vulnerabilities

    CVE-2026-23941CVE-2026-42792CVE-2026-54890CVE-2026-55737 Ubuntu Updated 28 September 2026
  • openSUSE-SU-2026:11559-1

    erlang-28.5.0.4-1.1 on GA media

    CVE-2026-28808CVE-2026-42789CVE-2026-42790CVE-2026-42791 openSUSE Updated 21 August 2026
  • openSUSE-SU-2026:11560-1

    erlang27-27.1.3-3.1 on GA media

    CVE-2025-26618CVE-2026-42792CVE-2026-47078CVE-2026-48855 openSUSE Updated 21 August 2026

References