CVE-2026-70405

snmp BER INTEGER decoder applies no size limit to attacker-supplied integer fields

Published Sep 1, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
Improper Validation of Specified Quantity in Input vulnerability in Erlang/OTP snmp allows a remote attacker to degrade availability by sending an SNMP message containing a BER INTEGER whose length field is arbitrarily large.

snmp_pdus:dec_integer_notag/1 defaults its size limit to infinity, and do_dec_integer_notag/2 then accumulates the value across every declared byte with a recursive shift and bitwise or. Work grows superlinearly in the declared length because each operation acts on a progressively larger bignum. The size-limited variant dec_integer_notag/2 exists but is reached from only one call site, dec_snmp_version/1, which bounds the version field to ten bytes; the request identifier, error status and index, generic and specific trap fields, engine boots and time, and every varbind value decoded by dec_value/1 all use the unbounded form. The decode runs before the PDU is processed, so no valid request is required beyond what the deployment demands to accept the message at all.

This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, OTP 28.5.0.6, and OTP 29.0.6, corresponding to snmp from 4.25.1 before 5.18.2.1, 5.20.2.2, and 5.20.5. Whether OTP before OTP 17.0, corresponding to snmp before 4.25.1, is affected is unknown.

Analysis

AI-generated

Technical impact

The vulnerability stems from the SNMP BER INTEGER decoder in Erlang/OTP, which does not enforce a size limit on the length field of integer values. A remote attacker can send an SNMP message containing a BER INTEGER whose length field is arbitrarily large. The default implementation among dec_integer_notag/1 and do_dec_integer_notag/2 accumulates the value byte by byte with recursive shifting and bitwise OR, causing work to grow super‑linearly with the declared length as each operation handles an increasingly larger big integer. Although a size‑limited variant dec_integer_notag/2 is used only for the SNMP version field, the request identifier, error status, indices, trap fields, engine boots, engine time, and all varbind values decoded with the unbounded form. Because the decoding occurs before any request validation, a single malicious packet can trigger a resource exhaustion attack that depletes CPU and memory and ultimately causes the SNMP service to fail or restart, resulting in denial of availability.

Affected Systems

The vulnerability affects Erlang/OTP releases prior to OTP 27.3.4.17, OTP 28.5.0.6, and OTP 29.0.6, which correspond to SNMP versions 4.25.1 through 5.18.2.1, 5.20.2.2, and 5.20.5. It is not confirmed whether earlier OTP releases before 17.0 (SNMP before 4.25.1) are affected.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. The vulnerability is exploitable remotely with no authentication, as an attacker can send an SNMP message containing a BER INTEGER whose length field is arbitrarily large. Because decoding occurs before request validation, a single malicious packet can trigger resource exhaustion, depleting CPU and memory and potentially causing the SNMP service to fail or restart, resulting in denial of availability. The EPSS score is reported as less than 1%, indicating a very low probability of exploitation, and the vulnerability is not listed in CISA’s KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Erlang/OTP to versions OTP 27.3.4.17, OTP 28.5.0.6, OTP 29.0.6 or newer.
  • Restrict SNMP exposure to trusted hosts using firewall rules or SNMP configuration, limiting connections to internal networks only.
  • Implement network monitoring to detect unusually large SNMP integer fields and block or quarantine suspicious traffic, or apply custom packet filtering to reject packets exceeding realistic size limits.

Generated by OpenCVE AI on November 15, 2026 at 11:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6580-1 erlang security update
History
Type Values Removed Values Added
Description Improper Validation of Specified Quantity in Input vulnerability in Erlang/OTP snmp allows a remote attacker to degrade availability by sending an SNMP message containing a BER INTEGER whose length field is arbitrarily large. snmp_pdus:dec_integer_notag/1 defaults its size limit to infinity, and do_dec_integer_notag/2 then accumulates the value across every declared byte with a recursive shift and bitwise or. Work grows superlinearly in the declared length because each operation acts on a progressively larger bignum. The size-limited variant dec_integer_notag/2 exists but is reached from only one call site, dec_snmp_version/1, which bounds the version field to ten bytes; the request identifier, error status and index, generic and specific trap fields, engine boots and time, and every varbind value decoded by dec_value/1 all use the unbounded form. The decode runs before the PDU is processed, so no valid request is required beyond what the deployment demands to accept the message at all. This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, from OTP 28.0 before OTP 28.5.0.6, and from OTP 29.0 before OTP 29.0.6, corresponding to snmp from 4.25.1 before 5.18.2.1, from 5.19 before 5.20.2.2, and from 5.20.3 before 5.20.5. Whether OTP before OTP 17.0, corresponding to snmp before 4.25.1, is affected is unknown. Improper Validation of Specified Quantity in Input vulnerability in Erlang/OTP snmp allows a remote attacker to degrade availability by sending an SNMP message containing a BER INTEGER whose length field is arbitrarily large. snmp_pdus:dec_integer_notag/1 defaults its size limit to infinity, and do_dec_integer_notag/2 then accumulates the value across every declared byte with a recursive shift and bitwise or. Work grows superlinearly in the declared length because each operation acts on a progressively larger bignum. The size-limited variant dec_integer_notag/2 exists but is reached from only one call site, dec_snmp_version/1, which bounds the version field to ten bytes; the request identifier, error status and index, generic and specific trap fields, engine boots and time, and every varbind value decoded by dec_value/1 all use the unbounded form. The decode runs before the PDU is processed, so no valid request is required beyond what the deployment demands to accept the message at all. This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, OTP 28.5.0.6, and OTP 29.0.6, corresponding to snmp from 4.25.1 before 5.18.2.1, 5.20.2.2, and 5.20.5. Whether OTP before OTP 17.0, corresponding to snmp before 4.25.1, is affected is unknown.
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Erlang erlang/otp
Erlang otp
Vendors & Products Erlang erlang/otp
Erlang otp
Type Values Removed Values Added
Description Improper Validation of Specified Quantity in Input vulnerability in Erlang/OTP snmp allows a remote attacker to degrade availability by sending an SNMP message containing a BER INTEGER whose length field is arbitrarily large. snmp_pdus:dec_integer_notag/1 defaults its size limit to infinity, and do_dec_integer_notag/2 then accumulates the value across every declared byte with a recursive shift and bitwise or. Work grows superlinearly in the declared length because each operation acts on a progressively larger bignum. The size-limited variant dec_integer_notag/2 exists but is reached from only one call site, dec_snmp_version/1, which bounds the version field to ten bytes; the request identifier, error status and index, generic and specific trap fields, engine boots and time, and every varbind value decoded by dec_value/1 all use the unbounded form. The decode runs before the PDU is processed, so no valid request is required beyond what the deployment demands to accept the message at all. This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, from OTP 28.0 before OTP 28.5.0.6, and from OTP 29.0 before OTP 29.0.6, corresponding to snmp from 4.25.1 before 5.18.2.1, from 5.19 before 5.20.2.2, and from 5.20.3 before 5.20.5. Whether OTP before OTP 17.0, corresponding to snmp before 4.25.1, is affected is unknown.
Title snmp BER INTEGER decoder applies no size limit to attacker-supplied integer fields
First Time appeared Erlang
Erlang erlang\/otp
Weaknesses CWE-1284
CPEs cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
Vendors & Products Erlang
Erlang erlang\/otp
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1284

    Improper Validation of Specified Quantity in Input

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 20, 2026, 6:04 AM
Reserved
Aug 6, 2026, 11:45 AM
Status
Deferred
Published
Sep 1, 2026, 3:17 PM
Modified
Nov 20, 2026, 6:17 AM