CVE-2026-49759: CWE-121 Stack-based Buffer Overflow in Erlang OTP
Stack-based Buffer Overflow vulnerability in Erlang OTP erts (inet_drv) allows an unauthenticated remote attacker to crash the BEAM VM by sending a crafted SCTP ERROR chunk. The sctp_parse_error_chunk function in erts/emulator/drivers/common/inet_drv.c parses SCTP ERROR chunks and writes cause codes into a fixed-size stack-allocated ErlDrvTermData spec[] array without checking bounds. A remote attacker who has established an SCTP association to a listening port can send a single crafted SCTP ERROR chunk containing enough cause codes to overflow the stack buffer, crashing the VM. The attacker can only write 16-bit values interleaved with a fixed tag, so the overflow does not provide a controlled return address, limiting exploitation to Denial of Service. A crafted SCTP ERROR chunk may also leak bits and pieces of Erlang VM memory into the received error packet observed by the Erlang process. Such data is already readable by the user running the Erlang VM, so the disclosure scope is limited. This issue affects OTP from OTP 17.0 before 27.3.4.13, 28.5.0.2 and 29.0.2, corresponding to erts from 6.0 before 15.2.7.9, 16.4.0.2 and 17.0.2.
AI Analysis
Technical Summary
The vulnerability exists in the sctp_parse_error_chunk function of the erts/emulator/drivers/common/inet_drv.c source file in Erlang OTP. This function parses SCTP ERROR chunks and writes cause codes into a fixed-size stack-allocated array without bounds checking, leading to a stack-based buffer overflow. An attacker with an established SCTP association can send a crafted SCTP ERROR chunk with enough cause codes to overflow the buffer and crash the BEAM VM. The overflow does not allow control over the return address, limiting the impact to denial of service. Additionally, the crafted chunk may leak small portions of Erlang VM memory in the error packet, but this data is already accessible to the user running the VM. The affected versions include OTP from 17.0 up to but not including 27.3.4.13, 28.5.0.2, and 29.0.2, and corresponding erts versions from 6.0 up to but not including 15.2.7.9, 16.4.0.2, and 17.0.2.
Potential Impact
An unauthenticated remote attacker can cause a denial of service by crashing the Erlang BEAM VM via a stack-based buffer overflow triggered by a crafted SCTP ERROR chunk. The vulnerability does not allow arbitrary code execution or privilege escalation due to limited control over the overflow. Some limited memory disclosure may occur but only exposes data already accessible by the Erlang VM user, so it does not increase the attack surface significantly.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, consider restricting SCTP access or monitoring for unusual SCTP ERROR chunks to reduce exposure. Since this is a denial of service vulnerability exploitable remotely without authentication, minimizing exposure to untrusted SCTP traffic is advisable.
CVE-2026-49759: CWE-121 Stack-based Buffer Overflow in Erlang OTP
Description
Stack-based Buffer Overflow vulnerability in Erlang OTP erts (inet_drv) allows an unauthenticated remote attacker to crash the BEAM VM by sending a crafted SCTP ERROR chunk. The sctp_parse_error_chunk function in erts/emulator/drivers/common/inet_drv.c parses SCTP ERROR chunks and writes cause codes into a fixed-size stack-allocated ErlDrvTermData spec[] array without checking bounds. A remote attacker who has established an SCTP association to a listening port can send a single crafted SCTP ERROR chunk containing enough cause codes to overflow the stack buffer, crashing the VM. The attacker can only write 16-bit values interleaved with a fixed tag, so the overflow does not provide a controlled return address, limiting exploitation to Denial of Service. A crafted SCTP ERROR chunk may also leak bits and pieces of Erlang VM memory into the received error packet observed by the Erlang process. Such data is already readable by the user running the Erlang VM, so the disclosure scope is limited. This issue affects OTP from OTP 17.0 before 27.3.4.13, 28.5.0.2 and 29.0.2, corresponding to erts from 6.0 before 15.2.7.9, 16.4.0.2 and 17.0.2.
CVSS v4.0
Score 8.8high
Affected software
pkg:github/erlang/otpcpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the sctp_parse_error_chunk function of the erts/emulator/drivers/common/inet_drv.c source file in Erlang OTP. This function parses SCTP ERROR chunks and writes cause codes into a fixed-size stack-allocated array without bounds checking, leading to a stack-based buffer overflow. An attacker with an established SCTP association can send a crafted SCTP ERROR chunk with enough cause codes to overflow the buffer and crash the BEAM VM. The overflow does not allow control over the return address, limiting the impact to denial of service. Additionally, the crafted chunk may leak small portions of Erlang VM memory in the error packet, but this data is already accessible to the user running the VM. The affected versions include OTP from 17.0 up to but not including 27.3.4.13, 28.5.0.2, and 29.0.2, and corresponding erts versions from 6.0 up to but not including 15.2.7.9, 16.4.0.2, and 17.0.2.
Potential Impact
An unauthenticated remote attacker can cause a denial of service by crashing the Erlang BEAM VM via a stack-based buffer overflow triggered by a crafted SCTP ERROR chunk. The vulnerability does not allow arbitrary code execution or privilege escalation due to limited control over the overflow. Some limited memory disclosure may occur but only exposes data already accessible by the Erlang VM user, so it does not increase the attack surface significantly.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, consider restricting SCTP access or monitoring for unusual SCTP ERROR chunks to reduce exposure. Since this is a denial of service vulnerability exploitable remotely without authentication, minimizing exposure to untrusted SCTP traffic is advisable.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-06-01T13:45:22.449Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a298ad7c9170919df367450
Added to database: 6/10/2026, 4:03:35 PM
Last enriched: 6/10/2026, 4:18:26 PM
Last updated: 6/10/2026, 5:48:48 PM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.