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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-121
- **Published:** 2026-06-10T14:35:36.804Z
- **Modified:** 2026-11-20T06:17:29.807Z

## Who should check

- Anyone running Erlang OTP \>= 3.7.16, \< \*
- Anyone running Erlang OTP \>= 17.0, \< \*
- Anyone running Erlang OTP \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< 0bef277b2d39dc8babb9ceb4f5d0a456f3007111

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

## Affected and fixed versions

- Erlang OTP: \>= 3.7.16, \< \* (cvelist)
- Erlang OTP: \>= 17.0, \< \* (cvelist)
- Erlang OTP: \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< 0bef277b2d39dc8babb9ceb4f5d0a456f3007111 (cvelist)

## Mitigation

- Upgrade OTP to 0bef277b2d39dc8babb9ceb4f5d0a456f3007111 or later.
- Vendor workaround: Avoid calling ei\_s\_print\_term with untrusted data whose encoded integer representation could exceed 2000 characters.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-49760. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-49760.md
Affected: Erlang OTP >= 3.7.16, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < 0bef277b2d39dc8babb9ceb4f5d0a456f3007111
Fixed in: Erlang OTP 0bef277b2d39dc8babb9ceb4f5d0a456f3007111

Steps:
1. Search this machine and project for Erlang OTP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-49760 being exploited?

There is no confirmed exploitation: CVE-2026-49760 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-49760?

Medium: CVSS 6.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-49760?

Erlang OTP \>= 3.7.16, \< \*; Erlang OTP \>= 17.0, \< \*; Erlang OTP \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< 0bef277b2d39dc8babb9ceb4f5d0a456f3007111.

### Is there a fix for CVE-2026-49760?

Yes. Fixed in Erlang OTP 0bef277b2d39dc8babb9ceb4f5d0a456f3007111. Upgrade OTP to 0bef277b2d39dc8babb9ceb4f5d0a456f3007111 or later. Vendor workaround: Avoid calling ei\_s\_print\_term with untrusted data whose encoded integer representation could exceed 2000 characters.

### How do I check if I'm affected by CVE-2026-49760?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/erlang/otp/security/advisories/GHSA-xcxj-5pg2-v72j>
- patch: <https://github.com/erlang/otp/commit/0bef277b2d39dc8babb9ceb4f5d0a456f3007111>
- other: <https://cna.erlef.org/cves/CVE-2026-49760.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-49760>
- other: <https://www.erlang.org/doc/system/versions.html#order-of-versions>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-49760>

HTML: <https://flawdb.com/CVE-2026-49760> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-49760>
