CVE-2026-49760: CWE-121 Stack-based Buffer Overflow in Erlang OTP
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 27.3.4.13, 28.5.0.2 and 29.0.2, corresponding to erl_interface from 3.7.16 before 5.5.2.1, 5.7.0.1 and 5.8.1.
AI Analysis
Technical Summary
CVE-2026-49760 is a stack-based buffer overflow in the Erlang OTP erl_interface library's ei_s_print_term function. The function uses a fixed-size 2000-character stack buffer to format Erlang terms. When processing an encoded term with a very large integer whose encoded representation exceeds 2000 characters, the buffer overflows. The overflow bytes are limited to ASCII digits and uppercase hexadecimal letters, which restricts exploitation to denial of service rather than arbitrary code execution. The companion function ei_print_term, which outputs directly to a FILE, is not vulnerable. Affected versions include OTP 17.0 up to but not including 27.3.4.13, 28.5.0.2, and 29.0.2, and erl_interface versions 3.7.16 and later up to but not including 5.5.2.1, 5.7.0.1, and 5.8.1.
Potential Impact
The vulnerability allows an attacker to cause a denial of service by triggering a stack-based buffer overflow in the ei_s_print_term function when processing specially crafted large integer terms. The overflow is limited to certain ASCII characters, preventing code execution or other more severe impacts. There are no known exploits in the wild. The vulnerability requires local access (AV:L) and low complexity to exploit, with no privileges or user interaction needed.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Users should avoid processing untrusted large integer terms with the vulnerable ei_s_print_term function or use the non-vulnerable ei_print_term function where possible. Monitor Erlang OTP vendor advisories for updates and patches addressing this issue.
CVE-2026-49760: CWE-121 Stack-based Buffer Overflow in Erlang OTP
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 27.3.4.13, 28.5.0.2 and 29.0.2, corresponding to erl_interface from 3.7.16 before 5.5.2.1, 5.7.0.1 and 5.8.1.
CVSS v4.0
Score 6.9medium
Affected software
pkg:github/erlang/otpcpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49760 is a stack-based buffer overflow in the Erlang OTP erl_interface library's ei_s_print_term function. The function uses a fixed-size 2000-character stack buffer to format Erlang terms. When processing an encoded term with a very large integer whose encoded representation exceeds 2000 characters, the buffer overflows. The overflow bytes are limited to ASCII digits and uppercase hexadecimal letters, which restricts exploitation to denial of service rather than arbitrary code execution. The companion function ei_print_term, which outputs directly to a FILE, is not vulnerable. Affected versions include OTP 17.0 up to but not including 27.3.4.13, 28.5.0.2, and 29.0.2, and erl_interface versions 3.7.16 and later up to but not including 5.5.2.1, 5.7.0.1, and 5.8.1.
Potential Impact
The vulnerability allows an attacker to cause a denial of service by triggering a stack-based buffer overflow in the ei_s_print_term function when processing specially crafted large integer terms. The overflow is limited to certain ASCII characters, preventing code execution or other more severe impacts. There are no known exploits in the wild. The vulnerability requires local access (AV:L) and low complexity to exploit, with no privileges or user interaction needed.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Users should avoid processing untrusted large integer terms with the vulnerable ei_s_print_term function or use the non-vulnerable ei_print_term function where possible. Monitor Erlang OTP vendor advisories for updates and patches addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-06-01T13:45:22.449Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a298ad7c9170919df367457
Added to database: 6/10/2026, 4:03:35 PM
Last enriched: 6/10/2026, 4:19:06 PM
Last updated: 6/10/2026, 5:51:14 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.