Skip to content
Threat Brief

← All advisories

CVE-2026-49760

Medium 6.9No known exploitationFix available

Stack Buffer Overflow in ei_s_print_term at Very Large Integer

Record last updated

CVSS score

6.9

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.1%

Higher than 3% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

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

VendorProductAffected versionsFixed inPer
ErlangOTPfrom 84adefa331c4159d432d22840663c38f155cd4c1 before 0bef277b2d39dc8babb9ceb4f5d0a456f30071110bef277b2d39dc8babb9ceb4f5d0a456f3007111CVE Program
ErlangOTP17.0Not documentedCVE Program
ErlangOTP3.7.16Not documentedCVE Program
erlangerl_interfacefrom 3.7.16 before 5.5.2.15.5.2.1NIST NVD
erlangerl_interfacefrom 5.7 before 5.7.0.15.7.0.1NIST NVD
erlangerl_interfacefrom 5.8 before 5.8.15.8.1NIST NVD
erlangerlang/otpfrom 17.0 before 27.3.4.1327.3.4.13NIST NVD
erlangerlang/otpfrom 28.0 before 28.5.0.228.5.0.2NIST NVD
erlangerlang/otpfrom 29.0 before 29.0.229.0.2NIST NVD
ErlangOTP (unaffected)0bef277b2d39dc8babb9ceb4f5d0a456f3007111Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by EEF

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by NVD (reference tagged Patch)

    Source: NVD (reference tagged Patch) (opens in a new tab)

Vendor guidance and references

CVE-2026-49760: Stack Buffer Overflow in ei_s_print_term at Very Large Integer · Threat Brief