Impact
A classic buffer overflow exists in the Erlang/OTP megaco flex scanner C driver. The vulnerability allows a remote, unauthenticated attacker to send a single text-encoded H.248/Megaco message containing an oversized property parameter name, causing uncontrolled memory writes that can lead to arbitrary code execution or a denial-of-service crash. The flaw manifests when the driver formats an overly long property name into a fixed 512-byte buffer using an unchecked sprintf call, overwriting adjacent pointers and counters and creating arbitrary write and free primitives within the BEAM VM process.
Affected Systems
The affected product is Erlang/OTP, specifically OTP versions before 29.0.4, 28.5.0.4, and 27.3.4.15. These correspond to megaco versions 3.17.1 before 4.9.1, 4.8.3.1, and 4.7.2.2 respectively. Versions prior to OTP 17.0 are also impacted but are not listed because the version scheme starts at 17.0.
Risk and Exploitability
With a CVSS score of 8.3, this flaw poses a high severity. Exponential exploitation requires only network reachability to the megaco transport port and no authentication. The EPSS score is < 1%, and the vulnerability is not listed in the CISA KEV catalog, but the remote code execution capability and absence of mitigations in older releases make it a serious risk that should be addressed promptly.
OpenCVE Enrichment