# CVE-2026-49760: Stack Buffer Overflow in ei\_s\_print\_term at Very Large Integer

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-10 · Modified: 2026-11-20
- Aliases: UBUNTU-CVE-2026-49760, DEBIAN-CVE-2026-49760
- Record: https://cvemate.com/vulnerability/CVE-2026-49760 · JSON: https://cvemate.com/vulnerability/CVE-2026-49760/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.136%, percentile 3.246%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian erlang (Debian): All versions (No fix recorded) \| \< 1:27.3.4.1+dfsg-1+deb13u3 \| \< 1:29.0.2+dfsg-1
- ubuntu erlang (Ubuntu): \< 1:16.b.3-dfsg-1ubuntu2.2+esm3 \| \< 1:18.3-dfsg-1ubuntu3.1+esm4 \| \< 1:20.2.2+dfsg-1ubuntu2+esm4 \| \< 1:22.2.7+dfsg-1ubuntu0.5+esm3 \| \< 1:24.2.1+dfsg-1ubuntu0.8 \| \< 1:25.3.2.8+dfsg-1ubuntu4.8 \| All versions (No fix recorded) \| \< 1:27.3.4.6+dfsg-1ubuntu0.2
- erlang erl\_interface: ≥ 3.7.16, \< 5.5.2.1 \| ≥ 5.7, \< 5.7.0.1 \| ≥ 5.8, \< 5.8.1
- erlang erlang\\/otp: ≥ 17.0, \< 27.3.4.13 \| ≥ 28.0, \< 28.5.0.2 \| ≥ 29.0, \< 29.0.2
- erlang otp: ≥ 3.7.16 (No fix recorded) \| ≥ 17.0 (No fix recorded) \| ≥ 84adefa331c4159d432d22840663c38f155cd4c1, \< 0bef277b2d39dc8babb9ceb4f5d0a456f3007111

## References

- <https://github.com/erlang/otp/security/advisories/GHSA-xcxj-5pg2-v72j>
- <https://cna.erlef.org/cves/CVE-2026-49760.html>
- <https://osv.dev/vulnerability/EEF-CVE-2026-49760>
- <https://www.erlang.org/doc/system/versions.html#order-of-versions>
- <https://github.com/erlang/otp/commit/0bef277b2d39dc8babb9ceb4f5d0a456f3007111>
- <https://ubuntu.com/security/CVE-2026-49760>
- <https://www.cve.org/CVERecord?id=CVE-2026-49760>
- <https://ubuntu.com/security/notices/USN-8901-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-49760>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49760>

---

Data as of 2026-12-05T07:09:19.464Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
