CVEMETERBack to radar
OFFICIAL RECORD · Erlang/Elixir

CVE-2026-59250

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 8.3 · high

Megaco flex scanner buffer overflow via oversized property parm name

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.779% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.

CVSS 4.0 · 8.3 · published by EEF
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
Assessment source · checked 2026-11-19T12:58:56.479Z

CVSS 4.0 · 8.3 · published by Ubuntu Security
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
Assessment source · checked 2026-11-19T16:52:52.101Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:58:56.479ZCVE Program
epssverified2026-11-19T16:04:53.106ZFIRST EPSS
patchesverified2026-11-19T16:52:52.101ZUbuntu Security
affectedverified2026-11-19T12:58:56.479ZCVE Program
lifecycleverified2026-11-19T12:58:56.479ZCVE Program

Affected versions and configuration

Erlang OTP; modules: megaco_flex_scanner, megaco_flex_scanner_drv; default status: unknown: 17.0 to < * [affected; scheme: otp]; changes: [{"at":"27.3.4.15","status":"unaffected"},{"at":"28.5.0.4","status":"unaffected"},{"at":"29.0.4","status":"unaffected"}] Erlang OTP; modules: megaco_flex_scanner, megaco_flex_scanner_drv; default status: unknown: 3.17.1 to < * [affected; scheme: otp]; changes: [{"at":"4.7.2.2","status":"unaffected"},{"at":"4.8.3.1","status":"unaffected"},{"at":"4.9.1","status":"unaffected"}] Erlang OTP; modules: megaco_flex_scanner, megaco_flex_scanner_drv; default status: unknown: 84adefa331c4159d432d22840663c38f155cd4c1 to < 8704c8f550a11ed5f825e3c011ecb03565b79c4f [affected; scheme: git]; 8704c8f550a11ed5f825e3c011ecb03565b79c4f to < * [unaffected; scheme: git]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "erlang",
    "debian": "https://tracker.debian.org/pkg/erlang",
    "source": "https://ubuntu.com/security/cve?package=erlang",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=erlang",
    "statuses": [
      {
        "pocket": "esm-infra",
        "status": "released",
        "component": null,
        "description": "1:20.2.2+dfsg-1ubuntu2+esm3",
        "release_codename": "bionic"
      },
      {
        "pocket": "esm-infra",
        "status": "released",
        "component": null,
        "description": "1:22.2.7+dfsg-1ubuntu0.5+esm2",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1:24.2.1+dfsg-1ubuntu0.7",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1:25.3.2.8+dfsg-1ubuntu4.7",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1:27.3.4.6+dfsg-1ubuntu0.1",
        "release_codename": "resolute"
      },
      {
        "pocket": "esm-infra-legacy",
        "status": "released",
        "component": null,
        "description": "1:16.b.3-dfsg-1ubuntu2.2+esm2",
        "release_codename": "trusty"
      },
      {
        "pocket": "esm-infra-legacy",
        "status": "released",
        "component": null,
        "description": "1:18.3-dfsg-1ubuntu3.1+esm3",
        "release_codename": "xenial"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1:29.0.6+dfsg-1",
        "release_codename": "upstream"
      }
    ]
  }
]
Archived source JSON
CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "cpes": [
        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
      ],
      "vendor": "Erlang",
      "modules": [
        "megaco_flex_scanner",
        "megaco_flex_scanner_drv"
      ],
      "product": "OTP",
      "versions": [
        {
          "status": "affected",
          "changes": [
            {
              "at": "27.3.4.15",
              "status": "unaffected"
            },
            {
              "at": "28.5.0.4",
              "status": "unaffected"
            },
            {
              "at": "29.0.4",
              "status": "unaffected"
            }
          ],
          "version": "17.0",
          "lessThan": "*",
          "versionType": "otp"
        }
      ],
      "packageURL": "pkg:software-id/erlang.org/otp",
      "packageName": "otp",
      "programFiles": [
        "lib/megaco/src/flex/megaco_flex_scanner_drv.flex.src"
      ],
      "defaultStatus": "unknown",
      "programRoutines": [
        {
          "name": "mfs_load_property_groups"
        },
        {
          "name": "megaco_flex_scanner:scan/2"
        }
      ]
    },
    {
      "cpes": [
        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
      ],
      "repo": "https://github.com/erlang/otp",
      "vendor": "Erlang",
      "modules": [
        "megaco_flex_scanner",
        "megaco_flex_scanner_drv"
      ],
      "product": "OTP",
      "versions": [
        {
          "status": "affected",
          "changes": [
            {
              "at": "4.7.2.2",
              "status": "unaffected"
            },
            {
              "at": "4.8.3.1",
              "status": "unaffected"
            },
            {
              "at": "4.9.1",
              "status": "unaffected"
            }
          ],
          "version": "3.17.1",
          "lessThan": "*",
          "versionType": "otp"
        }
      ],
      "packageURL": "pkg:otp/megaco?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
      "packageName": "megaco",
      "programFiles": [
        "src/flex/megaco_flex_scanner_drv.flex.src"
      ],
      "defaultStatus": "unknown",
      "programRoutines": [
        {
          "name": "mfs_load_property_groups"
        },
        {
          "name": "megaco_flex_scanner:scan/2"
        }
      ]
    },
    {
      "cpes": [
        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
      ],
      "repo": "https://github.com/erlang/otp",
      "vendor": "Erlang",
      "modules": [
        "megaco_flex_scanner",
        "megaco_flex_scanner_drv"
      ],
      "product": "OTP",
      "versions": [
        {
          "status": "affected",
          "version": "84adefa331c4159d432d22840663c38f155cd4c1",
          "lessThan": "8704c8f550a11ed5f825e3c011ecb03565b79c4f",
          "versionType": "git"
        },
        {
          "status": "unaffected",
          "version": "8704c8f550a11ed5f825e3c011ecb03565b79c4f",
          "lessThan": "*",
          "versionType": "git"
        }
      ],
      "packageURL": "pkg:github/erlang/otp",
      "packageName": "erlang/otp",
      "programFiles": [
        "lib/megaco/src/flex/megaco_flex_scanner_drv.flex.src"
      ],
      "collectionURL": "https://github.com",
      "defaultStatus": "unknown",
      "programRoutines": [
        {
          "name": "mfs_load_property_groups"
        },
        {
          "name": "megaco_flex_scanner:scan/2"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-59250",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-07-27T18:33:04.735708Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-07-27T18:33:14.927Z"
      }
    }
  ]
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
distribution-packageUbuntu / bionicerlangesm-infra1:20.2.2+dfsg-1ubuntu2+esm3Official record
distribution-packageUbuntu / focalerlangesm-infra1:22.2.7+dfsg-1ubuntu0.5+esm2Official record
distribution-packageUbuntu / jammyerlangsecurity1:24.2.1+dfsg-1ubuntu0.7Official record
distribution-packageUbuntu / nobleerlangsecurity1:25.3.2.8+dfsg-1ubuntu4.7Official record
distribution-packageUbuntu / resoluteerlangsecurity1:27.3.4.6+dfsg-1ubuntu0.1Official record
distribution-packageUbuntu / trustyerlangesm-infra-legacy1:16.b.3-dfsg-1ubuntu2.2+esm2Official record
distribution-packageUbuntu / xenialerlangesm-infra-legacy1:18.3-dfsg-1ubuntu3.1+esm3Official record
upstream-noteupstream / upstreamerlangNot a distribution channel1:29.0.6+dfsg-1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history