CVE-2026-49760 Details
Description
Stack-based Buffer Overflow vulnerability in Erlang OTP (erl_interface) allows Stack-based Buffer Overflow. This vulnerability is associated with program file lib/erl_interface/src/misc/ei_printterm.c and program routine ei_s_print_term. The C function ei_s_print_term uses an internal 2000-character stack buffer to format terms. When called with an encoded Erlang term containing a very large integer (encoded representation exceeding 2000 characters), the buffer overflows. The overflow bytes are restricted to the ASCII values of 0-9 and A-F, which limits exploitation to Denial of Service. The companion function ei_print_term, which prints directly to a FILE instead of a memory buffer, does not contain this bug. This issue affects OTP from OTP 17.0 before OTP 27.3.4.13, OTP 28.5.0.2, and OTP 29.0.2, corresponding to erl_interface from 3.7.16 before 5.5.2.1, 5.7.0.1, and 5.8.1. Whether OTP before OTP 17.0, corresponding to erl_interface before 3.7.16, is affected is unknown.
A stack-based buffer overflow vulnerability has been identified in the Erlang OTP library, specifically within the erl_interface component. This issue arises in versions 17.0 prior to 27.3.4.13, 28.5.0.2, and 29.0.2, corresponding to erl_interface versions 3.7.16 prior to 5.5.2.1, 5.7.0.1, and 5.8.1. The vulnerability occurs in the C function ei_s_print_term, which uses a 2000-character stack buffer to format terms. When the function is called with an encoded Erlang term containing a very large integer—specifically, an encoded representation exceeding 2000 characters—the buffer overflows. The overflow is limited to ASCII values 0-9 and A-F, restricting the exploitation potential to a denial-of-service condition. In contrast, the related function ei_print_term, which outputs directly to a file rather than a memory buffer, does not have this vulnerability.
Users can upgrade to Erlang OTP versions 27.3.4.13, 28.5.0.2, or 29.0.2 to address this vulnerability. For those using an affected version of the erl_interface component, upgrading to version 5.5.2.1, 5.7.0.1, or 5.8.1 is recommended.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.erlef.org/cves/CVE-2026-49760.html | EEF | MitigationThird Party Advisory |
| https://github.com/erlang/otp/commit/0bef277b2d39dc8babb9ceb4f5d0a456f3007111 | EEF | Patch |
| https://github.com/erlang/otp/security/advisories/GHSA-xcxj-5pg2-v72j | EEF | MitigationVendor Advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-49760 | EEF | MitigationThird Party Advisory |
| https://www.erlang.org/doc/system/versions.html#order-of-versions | EEF | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-121 | Stack-based Buffer Overflow | EEF |
Affected Products
| Product | Versions |
|---|---|
| erlang erl interface | >= 3.7.16, < 5.5.2.1 >= 5.7, < 5.7.0.1 >= 5.8, < 5.8.1 |
CPE
Remediation
| |
| erlang erlang/otp | >= 17.0, < 27.3.4.13 >= 28.0, < 28.5.0.2 >= 29.0, < 29.0.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 24, 2026 | CVE Modified | EEF |
| Jul 24, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | Initial Analysis | [email protected] |
| Jun 10, 2026 | New CVE Received | EEF |