llamaCVEVulnerability Intelligence
/
OTP

CVE-2026-59250

Megaco flex scanner buffer overflow via oversized property parm name

Specific setups onlyParche disponiblebuffer overflow
Descargar PNG JSON
CVSS 4.0
8.3
Alta
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 Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones4.7.2.2 · 27.3.4.15
Exposición114 dDesde la divulgación, 27 jul 2026, 10:25 a. m.
Detección112 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir
Remediar en la ventana regular de mantenimiento
Sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Modificada
Explotación
Remediación
Monitoreo
Detectada
Fuente: OSV +1
27 jul 26
17 nov 26
19 nov 26
27 jul 26
25 ago 26
23 sept 26
21 oct 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-59250 divulgada · CVSS 8.3 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Monitoreo Detectada Ingresó al índice
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen

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.

¿Qué significa?A buffer overflow in the Megaco flex scanner, triggered by an oversized property parm name, can corrupt the BEAM VM's process memory. The advisory says this can be leveraged for remote code execution, or it can crash the node (denial of service).
¿Quién está afectado?Only setups where the Megaco text codec is configured with the encoder option {scanner, flex} are affected. The affected OTP releases run from 17.0 before 27.3.4.15, 28.5.0.4 and 29.0.4, which correspond to megaco from 3.17.1 before 4.7.2.2, 4.8.3.1 and 4.9.1. To check, look at the encoder options passed to the megaco text codec for {scanner, flex}, and check the installed OTP release.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Megaco text codec configured to use the flex scanner via the encoder option {scanner, flex}“The megaco text codec must be configured to use the flex scanner via the encoder option {scanner, flex}”
02
OTP 17.0 up to the patched releases (OTP 27.3.4.15, 28.5.0.4, 29.0.4)“This issue affects OTP from OTP 17.0 before OTP 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4”
¿Quién debe revisar?Teams running Erlang/OTP 17.0 or later, or megaco 3.17.1 or later, that configure the megaco text codec with {scanner, flex}.
MitigaciónRemove {scanner, flex} from the encoder configuration to use the default Erlang-based scanner.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:N
AltoBajoNinguno
Integridad (sistema)VI:L
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
megaco≥ 3.17.1 < 4.7.2.2
otp≥ 17.0 < 27.3.4.15
3.17.1
4.7.2.2
17.0
27.3.4.15
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
OTP
Corregida 4.7.2.2, 27.3.4.15 — —
Versiones corregidas4.7.2.227.3.4.15
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Registro
EscenarioGENERALEEF
configurationThe megaco text codec must be configured to use the flex scanner via the encoder option {scanner, flex} (the documented high-performance configuration). Deployments using the default Erlang-based scanner are not affected.EEF
MitigaciónSwitch the megaco text codec to the default Erlang-based scanner by removing {scanner, flex} from the encoder configuration. The Erlang scanner is not affected by this C-level memory corruption, at the cost of reduced parsing throughput.EEF
Referencias
Fabricantehttps://github.com/erlang/otp/security/advisories/GHSA-7xgh-gmgf-q2g7
Fabricantehttps://www.erlang.org/doc/system/versions.html#order-of-versions
Parchehttps://github.com/erlang/otp/commit/8704c8f550a11ed5f825e3c011ecb03565b79c4f
Otrahttps://cna.erlef.org/cves/CVE-2026-59250.html
Otrahttps://osv.dev/vulnerability/EEF-CVE-2026-59250

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.