{"id":"CVE-2026-49760","state":"PUBLISHED","title":"Stack Buffer Overflow in ei_s_print_term at Very Large Integer","description":"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.","publishedAt":"2026-06-10T14:35:36.804Z","updatedAt":"2026-09-24T20:42:47.418Z","severity":{"score":6.9,"label":"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","source":"EEF"},"assigner":"EEF","products":["Erlang OTP"],"affected":[{"vendor":"Erlang","product":"OTP","packageName":"otp","packageURL":"pkg:software-id/erlang.org/otp","defaultStatus":"unknown","versions":[{"version":"17.0","status":"affected","lessThan":"*","changes":[{"at":"27.3.4.13","status":"unaffected"},{"at":"28.5.0.2","status":"unaffected"},{"at":"29.0.2","status":"unaffected"}],"versionType":"otp"}],"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"modules":["erl_interface"],"programFiles":["lib/erl_interface/src/misc/ei_printterm.c"],"programRoutines":[{"name":"ei_s_print_term"}]},{"vendor":"Erlang","product":"OTP","packageName":"erl_interface","packageURL":"pkg:otp/erl_interface?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git","defaultStatus":"unknown","versions":[{"version":"3.7.16","status":"affected","lessThan":"*","changes":[{"at":"5.5.2.1","status":"unaffected"},{"at":"5.7.0.1","status":"unaffected"},{"at":"5.8.1","status":"unaffected"}],"versionType":"otp"}],"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"modules":["erl_interface"],"programFiles":["src/misc/ei_printterm.c"],"programRoutines":[{"name":"ei_s_print_term"}],"repo":"https://github.com/erlang/otp"},{"vendor":"Erlang","product":"OTP","packageName":"erlang/otp","packageURL":"pkg:github/erlang/otp","defaultStatus":"unknown","versions":[{"version":"84adefa331c4159d432d22840663c38f155cd4c1","status":"affected","lessThan":"0bef277b2d39dc8babb9ceb4f5d0a456f3007111","versionType":"git"},{"version":"0bef277b2d39dc8babb9ceb4f5d0a456f3007111","status":"unaffected","lessThan":"*","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"modules":["erl_interface"],"programFiles":["lib/erl_interface/src/misc/ei_printterm.c"],"programRoutines":[{"name":"ei_s_print_term"}],"repo":"https://github.com/erlang/otp"}],"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"],"weaknesses":["CWE-121"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/49xxx/CVE-2026-49760.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49760","state":"PUBLISHED","datePublished":"2026-06-10T14:35:36.804Z","dateUpdated":"2026-09-24T20:42:47.418Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-06-01T13:45:22.449Z"},"containers":{"cna":{"title":"Stack Buffer Overflow in ei_s_print_term at Very Large Integer","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Erlang","product":"OTP","packageName":"otp","packageURL":"pkg:software-id/erlang.org/otp","defaultStatus":"unknown","versions":[{"version":"17.0","status":"affected","lessThan":"*","changes":[{"at":"27.3.4.13","status":"unaffected"},{"at":"28.5.0.2","status":"unaffected"},{"at":"29.0.2","status":"unaffected"}],"versionType":"otp"}],"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"modules":["erl_interface"],"programFiles":["lib/erl_interface/src/misc/ei_printterm.c"],"programRoutines":[{"name":"ei_s_print_term"}]},{"vendor":"Erlang","product":"OTP","packageName":"erl_interface","packageURL":"pkg:otp/erl_interface?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git","defaultStatus":"unknown","versions":[{"version":"3.7.16","status":"affected","lessThan":"*","changes":[{"at":"5.5.2.1","status":"unaffected"},{"at":"5.7.0.1","status":"unaffected"},{"at":"5.8.1","status":"unaffected"}],"versionType":"otp"}],"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"modules":["erl_interface"],"programFiles":["src/misc/ei_printterm.c"],"programRoutines":[{"name":"ei_s_print_term"}],"repo":"https://github.com/erlang/otp"},{"vendor":"Erlang","product":"OTP","packageName":"erlang/otp","packageURL":"pkg:github/erlang/otp","defaultStatus":"unknown","versions":[{"version":"84adefa331c4159d432d22840663c38f155cd4c1","status":"affected","lessThan":"0bef277b2d39dc8babb9ceb4f5d0a456f3007111","versionType":"git"},{"version":"0bef277b2d39dc8babb9ceb4f5d0a456f3007111","status":"unaffected","lessThan":"*","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"modules":["erl_interface"],"programFiles":["lib/erl_interface/src/misc/ei_printterm.c"],"programRoutines":[{"name":"ei_s_print_term"}],"repo":"https://github.com/erlang/otp"}],"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","name":"EEF CNA record for CVE-2026-49760","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-49760","name":"OSV record EEF-CVE-2026-49760","tags":["related"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","name":"Erlang/OTP version ordering","tags":["x_version-scheme"]},{"url":"https://github.com/erlang/otp/commit/0bef277b2d39dc8babb9ceb4f5d0a456f3007111","name":"Fix commit 0bef277 in erlang/otp","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":6.9,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-121","description":"CWE-121 Stack-based Buffer Overflow","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-09-24T20:42:47.418Z"},"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"27.3.4.13","vulnerable":true},{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"28.5.0.2","versionStartIncluding":"28.0","vulnerable":true},{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"29.0.2","versionStartIncluding":"29.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"remediation developer","value":"Sverker Eriksson"}],"datePublic":"2026-06-10T14:35:36.000Z","impacts":[{"capecId":"CAPEC-8","descriptions":[{"lang":"en","value":"CAPEC-8 Buffer Overflow in an API Call"}]}],"source":{"discovery":"INTERNAL"},"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Avoid calling <code>ei_s_print_term</code> with untrusted data whose encoded integer representation could exceed 2000 characters.</p>"},{"base64":false,"type":"text/markdown","value":"Avoid calling `ei_s_print_term` with untrusted data whose encoded integer representation could exceed 2000 characters."}],"value":"Avoid calling ei_s_print_term with untrusted data whose encoded integer representation could exceed 2000 characters."}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-10T16:16:14.697009Z","id":"CVE-2026-49760","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-10T16:16:28.366Z"}}]}}}