CVE-2026-49760
Medium 6.9No known exploitationFix availableStack Buffer Overflow in ei_s_print_term at Very Large Integer
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 3% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-121
Patching and mitigation
- Patch status
- Fix available (source: NVD (reference tagged Patch))
- Fix documented (source date)
- Mitigation
- Avoid calling ei_s_print_term with untrusted data whose encoded integer representation could exceed 2000 characters. Source (opens in a new tab)
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Erlang | OTP | from 84adefa331c4159d432d22840663c38f155cd4c1 before 0bef277b2d39dc8babb9ceb4f5d0a456f3007111 | 0bef277b2d39dc8babb9ceb4f5d0a456f3007111 | CVE Program |
| Erlang | OTP | 17.0 | Not documented | CVE Program |
| Erlang | OTP | 3.7.16 | Not documented | CVE Program |
| erlang | erl_interface | from 3.7.16 before 5.5.2.1 | 5.5.2.1 | NIST NVD |
| erlang | erl_interface | from 5.7 before 5.7.0.1 | 5.7.0.1 | NIST NVD |
| erlang | erl_interface | from 5.8 before 5.8.1 | 5.8.1 | NIST NVD |
| erlang | erlang/otp | from 17.0 before 27.3.4.13 | 27.3.4.13 | NIST NVD |
| erlang | erlang/otp | from 28.0 before 28.5.0.2 | 28.5.0.2 | NIST NVD |
| erlang | erlang/otp | from 29.0 before 29.0.2 | 29.0.2 | NIST NVD |
| Erlang | OTP (unaffected) | 0bef277b2d39dc8babb9ceb4f5d0a456f3007111 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by NVD (reference tagged Patch)
Vendor guidance and references
- EEF CNA record for CVE-2026-49760 (opens in a new tab)mitigation, related, third party advisory
- Fix commit 0bef277 in erlang/otp (opens in a new tab)patch
- https://github.com/erlang/otp/security/advisories/GHSA-xcxj-5pg2-v72j (opens in a new tab)mitigation, related, vendor advisory, vendor-advisory
- OSV record EEF-CVE-2026-49760 (opens in a new tab)mitigation, related, third party advisory
- Erlang/OTP version ordering (opens in a new tab)product, x_version-scheme