{"id":"CVE-2026-49760","published":"2026-06-10T14:35:36Z","modified":"2026-11-20T06:02:14Z","title":"Stack Buffer Overflow in ei_s_print_term at Very Large Integer","vendor":"Erlang","product":"OTP","tier":"tail","description":{"text":"Stack-based Buffer Overflow vulnerability in Erlang OTP (erl_interface) allows Stack-based Buffer Overflow.\n\nThis vulnerability is associated with program file lib/erl_interface/src/misc/ei_printterm.c and program routine ei_s_print_term.\n\nThe 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.\n\nThe companion function ei_print_term, which prints directly to a FILE instead of a memory buffer, does not contain this bug.\n\nThis 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00136,"percentile":0.03097,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-xcxj-5pg2-v72j","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-49760.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-49760","tags":["related"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","tags":["x_version-scheme"]},{"url":"https://github.com/erlang/otp/commit/0bef277b2d39dc8babb9ceb4f5d0a456f3007111","tags":["patch"]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":0.62},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"erlang","affectedVersions":[{"vendor":"Erlang","product":"OTP","versions":[">= 3.7.16"]},{"vendor":"Erlang","product":"OTP","versions":[">= 17.0"]},{"vendor":"Erlang","product":"OTP","versions":[">= 84adefa331c4159d432d22840663c38f155cd4c1, < 0bef277b2d39dc8babb9ceb4f5d0a456f3007111"]}],"fixedVersions":[{"vendor":"Erlang","product":"OTP","versions":["5.5.2.1","5.7.0.1","5.8.1"]},{"vendor":"Erlang","product":"OTP","versions":["27.3.4.13","28.5.0.2","29.0.2"]}],"workarounds":{"items":["Avoid calling ei_s_print_term with untrusted data whose encoded integer representation could exceed 2000 characters."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-8","name":"Buffer Overflow in an API Call"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-10T16:16:14.697009Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-36052","exploited":false,"provenance":"source"}}