> CVE-2026-59250 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-07-27 16:18
MODIFIED
2026-07-27 16:18
CVSS_SCORE V3
8.3
EPSS (Prob. Exploit)
0.78%
Top 44.5%
DATA SOURCES:
NVD đź”— 2026-07-27 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25 OSV đź”— 2026-08-03 MSRC đź”— 2026-11-02

> DESCRIPTION

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 29.0.4, OTP 28.5.0.4 and OTP 27.3.4.15, corresponding to megaco from 3.17.1 before 4.9.1, 4.8.3.1 and 4.7.2.2. Versions prior to OTP 17.0 are also affected but are not listed because the OTP version scheme is only defined from OTP 17.0 onwards.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

> MÉTRIQUES CVSS DÉTAILLÉES

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-120 CWE-787

> CWE DETAILED DESCRIPTIONS

CWE-120: Buffer Copy without Checking Size of Input - The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. | CWE-787: Out-of-bounds Write - The product writes data past the end, or before the beginning, of the intended buffer.

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Megaco flex scanner buffer overflow via oversized property parm name

AFFECTED PACKAGES:
Unknown / Unknown
83 versions affected
ALIASES:
EEF-CVE-2026-59250, GHSA-7xgh-gmgf-q2g7

> HISTORIQUE DES MODIFICATIONS

Première apparition
27/07/2026 16:18
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:59
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') - The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less tha...
Nouvelle valeur:
CWE-120: Buffer Copy without Checking Size of Input - The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buf...
📊 ENRICHISSEMENT 01/08/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') - The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less tha...
Total des modifications: 2 Dernière mise à jour: 4 days ago

> REFERENCES

https://cna.erlef.org/cves/CVE-2026-59250.html
https://github.com/erlang/otp/commit/8704c8f550a11ed5f825e3c011ecb03565b79c4f
https://github.com/erlang/otp/security/advisories/GHSA-7xgh-gmgf-q2g7
https://osv.dev/vulnerability/EEF-CVE-2026-59250
https://www.erlang.org/doc/system/versions.html#order-of-versions
« BACK_TO_HOME