{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-49760",
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "state": "PUBLISHED",
        "assignerShortName": "EEF",
        "dateReserved": "2026-06-01T13:45:22.449Z",
        "datePublished": "2026-06-10T14:35:36.804Z",
        "dateUpdated": "2026-07-24T14:15:41.278Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "cpes": [
                        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unknown",
                    "modules": [
                        "erl_interface"
                    ],
                    "packageName": "erl_interface",
                    "packageURL": "pkg:otp/erl_interface?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%20https:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
                    "product": "OTP",
                    "programFiles": [
                        "src/misc/ei_printterm.c"
                    ],
                    "programRoutines": [
                        {
                            "name": "ei_s_print_term"
                        }
                    ],
                    "repo": "https://github.com/erlang/otp",
                    "vendor": "Erlang",
                    "versions": [
                        {
                            "changes": [
                                {
                                    "at": "5.5.2.1",
                                    "status": "unaffected"
                                },
                                {
                                    "at": "5.7.0.1",
                                    "status": "unaffected"
                                },
                                {
                                    "at": "5.8.1",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "*",
                            "status": "affected",
                            "version": "3.7.16",
                            "versionType": "otp"
                        }
                    ]
                },
                {
                    "collectionURL": "https://github.com",
                    "cpes": [
                        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unknown",
                    "modules": [
                        "erl_interface"
                    ],
                    "packageName": "erlang/otp",
                    "packageURL": "pkg:github/erlang/otp",
                    "product": "OTP",
                    "programFiles": [
                        "lib/erl_interface/src/misc/ei_printterm.c"
                    ],
                    "programRoutines": [
                        {
                            "name": "ei_s_print_term"
                        }
                    ],
                    "repo": "https://github.com/erlang/otp",
                    "vendor": "Erlang",
                    "versions": [
                        {
                            "changes": [
                                {
                                    "at": "27.3.4.13",
                                    "status": "unaffected"
                                },
                                {
                                    "at": "28.5.0.2",
                                    "status": "unaffected"
                                },
                                {
                                    "at": "29.0.2",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "*",
                            "status": "affected",
                            "version": "17.0",
                            "versionType": "otp"
                        },
                        {
                            "lessThan": "0bef277b2d39dc8babb9ceb4f5d0a456f3007111",
                            "status": "affected",
                            "version": "84adefa331c4159d432d22840663c38f155cd4c1",
                            "versionType": "git"
                        }
                    ]
                }
            ],
            "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"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>Stack-based Buffer Overflow vulnerability in Erlang OTP (erl_interface) allows Stack-based Buffer Overflow.</p><p>This vulnerability is associated with program file <tt>lib/erl_interface/src/misc/ei_printterm.c</tt> and program routine <tt>ei_s_print_term</tt>.</p><p>The C function <tt>ei_s_print_term</tt> 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 <tt>0</tt>-<tt>9</tt> and <tt>A</tt>-<tt>F</tt>, which limits exploitation to Denial of Service.</p><p>The companion function <tt>ei_print_term</tt>, which prints directly to a <tt>FILE</tt> instead of a memory buffer, does not contain this bug.</p><p>This issue affects OTP from OTP 17.0 before OTP&nbsp;29.0.2, OTP&nbsp;28.5.0.2 and OTP&nbsp;27.3.4.13, corresponding to erl_interface from 3.7.16 before 5.8.1, 5.7.0.1 and 5.5.2.1.</p>"
                        }
                    ],
                    "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 29.0.2, OTP 28.5.0.2 and OTP 27.3.4.13, corresponding to erl_interface from 3.7.16 before 5.8.1, 5.7.0.1 and 5.5.2.1."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-8",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-8 Buffer Overflow in an API Call"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "attackVector": "LOCAL",
                        "baseScore": 6.9,
                        "baseSeverity": "MEDIUM",
                        "privilegesRequired": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "userInteraction": "NONE",
                        "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"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-121",
                            "description": "CWE-121 Stack-based Buffer Overflow",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
                "shortName": "EEF",
                "dateUpdated": "2026-07-24T14:15:41.278Z"
            },
            "references": [
                {
                    "tags": [
                        "vendor-advisory",
                        "related"
                    ],
                    "url": "https://github.com/erlang/otp/security/advisories/GHSA-xcxj-5pg2-v72j"
                },
                {
                    "tags": [
                        "related"
                    ],
                    "url": "https://cna.erlef.org/cves/CVE-2026-49760.html"
                },
                {
                    "tags": [
                        "related"
                    ],
                    "url": "https://osv.dev/vulnerability/EEF-CVE-2026-49760"
                },
                {
                    "tags": [
                        "x_version-scheme"
                    ],
                    "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
                },
                {
                    "tags": [
                        "patch"
                    ],
                    "url": "https://github.com/erlang/otp/commit/0bef277b2d39dc8babb9ceb4f5d0a456f3007111"
                }
            ],
            "source": {
                "discovery": "INTERNAL"
            },
            "title": "Stack Buffer Overflow in ei_s_print_term at Very Large Integer",
            "workarounds": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "Avoid calling <tt>ei_s_print_term</tt> 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."
                }
            ],
            "x_generator": {
                "engine": "cvelib 1.8.0"
            }
        },
        "adp": [
            {
                "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"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-06-10T16:16:28.366Z"
                }
            }
        ]
    }
}