# CVE-2026-49760: Stack Buffer Overflow in ei_s_print_term at Very Large Integer

- Severity: Medium 6.9 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-06-10T14:35:36.804Z
- Modified: 2026-11-25T06:30:24.680Z
- Also known as: EEF-CVE-2026-49760, GHSA-xcxj-5pg2-v72j
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- erl_interface: from 3.7.16 before *
- otp: from 17.0 before *
- erlang/otp: from 84adefa331c4159d432d22840663c38f155cd4c1 before 0bef277b2d39dc8babb9ceb4f5d0a456f3007111 (not affected: from 0bef277b2d39dc8babb9ceb4f5d0a456f3007111 before *)
- https://github.com/erlang/otp: from 84adefa331c4159d432d22840663c38f155cd4c1 before 0bef277b2d39dc8babb9ceb4f5d0a456f3007111
- erlang erl_interface: from 3.7.16 before 5.5.2.1; from 5.7 before 5.7.0.1; from 5.8 before 5.8.1
- erlang erlang/otp: from 17.0 before 27.3.4.13; from 28.0 before 28.5.0.2; from 29.0 before 29.0.2

## Every score

- EEF: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/erlang/otp/security/advisories/GHSA-xcxj-5pg2-v72j> (advisory, mitigation, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-49760.html> (mitigation, related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-49760> (mitigation, related, third-party-advisory)
- <https://www.erlang.org/doc/system/versions.html#order-of-versions> (product, web)
- <https://github.com/erlang/otp/commit/0bef277b2d39dc8babb9ceb4f5d0a456f3007111> (fix, patch)

## Sources

- CVE List: [CVE-2026-49760](https://www.cve.org/CVERecord?id=CVE-2026-49760), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-49760](https://osv.dev/vulnerability/EEF-CVE-2026-49760), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-49760](https://nvd.nist.gov/vuln/detail/CVE-2026-49760), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-49760 · Whole record: https://cve.day/CVE-2026-49760.json · Rebuilt by cve.day 2026-11-25T22:59:24.342Z
