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, 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.
- Published
- Jul 27, 2026
- Updated
- Sep 8, 2026
- EPSS
- 0.8% · 55th percentile
- CWE
- CWE-120
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
33
Monitor
Low priority for now.
- CVSS
- 33 / 40 · 8.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.8%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · EEF
- 8.3
- NVD has not scored this yet; the score shown is the CNA’s.
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
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpAffected systems
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (EEF). Independent of NVD's CPE analysis and usually ahead of it.
Erlang OTP
- before 17.0unknown · otp
- 17.0 and later · before 27.3.4.15affected · otp
- 28.0 and later · before 28.5.0.4affected · otp
- 29.0 and later · before 29.0.4affected · otp
- before 3.17.1unknown · otp
- 3.17.1 and later · before 4.7.2.2affected · otp
- 4.8 and later · before 4.8.3.1affected · otp
- 4.9 and later · before 4.9.1affected · otp
- 84adefa331c4159d432d22840663c38f155cd4c1 and later · before 8704c8f550a11ed5f825e3c011ecb03565b79c4faffected · git
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | erlang | all versions | — |
| Debian:13 | erlang | before 1:27.3.4.1+dfsg-1+deb13u3 | 1:27.3.4.1+dfsg-1+deb13u3 |
| Debian:14 | erlang | before 1:29.0.4+dfsg-1 | 1:29.0.4+dfsg-1 |
| openSUSE:Tumbleweed | erlang27 | before 27.1.3-3.1 | 27.1.3-3.1 |
| Red Hat:hummingbird:1 | erlang27 | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-asn1 | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-common_test | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-compiler | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-crypto | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-debugger | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-dialyzer | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-diameter | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-edoc | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-eldap | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-erl_interface | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-erts | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-et | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-eunit | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-examples | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-ftp | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-gdb-tools | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-inets | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-jinterface | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
| Red Hat:hummingbird:1 | erlang27-kernel | before 0:27.3.4.15-0.1.hum1 | 0:27.3.4.15-0.1.hum1 |
+20
Same product
erlang: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-89422TLS 1.3 client skips server authentication when ServerHello carries an unsolicited pre_shared_key extension37Monitor
- CVE-2026-74835inets,httpd: Memory Exhaustion via Unenforced max_body_size During Chunked Body Reception34Monitor
- CVE-2026-71380httpd applies no timeout while receiving a request body, parking a worker on a stalled client34Monitor
- CVE-2026-70399httpd does not enforce the documented default max_clients connection limit34Monitor
- CVE-2026-69664httpd parks a request worker indefinitely on a malformed chunk size sent after the headers34Monitor
- CVE-2026-73812inets, httpd: HTTP Request Smuggling via Transfer-Encoding and Content-Length33Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Erlang OTP | 27.3.4.15 | Vendor (CNA) |
| Erlang OTP | 28.5.0.4 | Vendor (CNA) |
| Erlang OTP | 29.0.4 | Vendor (CNA) |
| Erlang OTP | 4.7.2.2 | Vendor (CNA) |
| Erlang OTP | 4.8.3.1 | Vendor (CNA) |
| Erlang OTP | 4.9.1 | Vendor (CNA) |
| Erlang OTP | 8704c8f550a11ed5f825e3c011ecb03565b79c4f | Vendor (CNA) |
| azl3 erlang 26.2.5.21-4 on Azure Linux 3.0 | 26.2.5.21-5 · CBL-Mariner Releases | Microsoft (MSRC) |
| debian:erlang | 1:27.3.4.1+dfsg-1+deb13u3 · Debian:13 | Package registry (OSV) |
| opensuse:erlang27 | 27.1.3-3.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:erlang27 | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-asn1 | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-common_test | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-compiler | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-crypto | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-debugger | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-dialyzer | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-diameter | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-edoc | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-eldap | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-erl_interface | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:erlang27-erts | 0:27.3.4.15-0.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| suse:erlang | 23.3.4.19-150300.3.39.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP7 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- Jakub Witczakremediation developer
- Micael Karlbergremediation reviewer
- Jonatan Männchen / EEFfinder
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-26-0662 · Jul 28, 2026(Erlang/OTP Güvenlik Zafiyeti)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- Integrity
- Availability
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- X
Weakness class (CWE)
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')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
nvd-secondary
Root cause
When data is copied, the source length is not compared with the size of the destination buffer. Excess data overwrites adjacent memory.
The bug in code
The whole CWE-120 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
char buf[256];memcpy(buf, pkt->data, pkt->len);Fixed
char buf[256];if (pkt->len > sizeof(buf)) { return -EINVAL;}memcpy(buf, pkt->data, pkt->len);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
- Overflow Variables and TagsCAPEC-46likelihood: High · High
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- cna.erlef.org/cves/CVE-2026-59250.html
- github.com/erlang/otp/commit/8704c8f550a11ed5f825e3c011ecb03565b79c4f
- github.com/erlang/otp/security/advisories/GHSA-7xgh-gmgf-q2g7
- osv.dev/vulnerability/EEF-CVE-2026-59250
- www.erlang.org/doc/system/versions.html#order-of-versions
Vendor advisories and official records. Exploit/PoC links are deliberately left out.