CVE-2026-70405: snmp BER INTEGER decoder applies no size limit to attacker-supplied integer fields

Published Sep 1, 2026
·
Updated

Summary

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.

snmppdus:decintegernotag/1 defaults its size limit to infinity, and dodecintegernotag/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 decintegernotag/2 exists but is reached from only one call site, decsnmpversion/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 decvalue/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.

Other sources

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.

snmppdus:decintegernotag/1 defaults its size limit to infinity, and dodecintegernotag/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 decintegernotag/2 exists but is reached from only one call site, decsnmpversion/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 decvalue/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.

— Red Hat

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.

snmppdus:decintegernotag/1 defaults its size limit to infinity, and dodecintegernotag/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 decintegernotag/2 exists but is reached from only one call site, decsnmpversion/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 decvalue/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.

— MITRE

Affected Software

13 affected componentsFixes available
Erlang OTP>17.0<=27.3.4.17, >28.0<=28.5.0.6, >29.0<=29.0.6
snmp/4.25.1-5.18.2.1>4.25.1<=5.18.2.1, >=5.19<5.20.2.2, >=5.20.3<5.20.5
ubuntu/erlang<1:16.b.3-dfsg-1ubuntu2.2+esm2
1:16.b.3-dfsg-1ubuntu2.2+esm2
ubuntu/erlang<1:18.3-dfsg-1ubuntu3.1+esm3
1:18.3-dfsg-1ubuntu3.1+esm3
ubuntu/erlang<1:20.2.2+dfsg-1ubuntu2+esm3
1:20.2.2+dfsg-1ubuntu2+esm3
ubuntu/erlang<1:22.2.7+dfsg-1ubuntu0.5+esm2
1:22.2.7+dfsg-1ubuntu0.5+esm2
ubuntu/erlang<1:24.2.1+dfsg-1ubuntu0.7
1:24.2.1+dfsg-1ubuntu0.7
ubuntu/erlang<1:25.3.2.8+dfsg-1ubuntu4.7
1:25.3.2.8+dfsg-1ubuntu4.7
ubuntu/erlang<1:27.3.4.6+dfsg-1ubuntu0.1
1:27.3.4.6+dfsg-1ubuntu0.1
debian/erlang*
debian/erlang<1:27.3.4.1+dfsg-1+deb13u4
1:27.3.4.1+dfsg-1+deb13u4
debian/erlang<1:29.0.6+dfsg-1
1:29.0.6+dfsg-1
debian/erlang<=1:25.2.3+dfsg-1+deb12u4, <=1:25.2.3+dfsg-1+deb12u1
1:27.3.4.1+dfsg-1+deb13u41:29.0.6+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:16.b.3-dfsg-1ubuntu2.2+esm2
  2. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:18.3-dfsg-1ubuntu3.1+esm3
  3. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:20.2.2+dfsg-1ubuntu2+esm3
  4. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:22.2.7+dfsg-1ubuntu0.5+esm2
  5. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:24.2.1+dfsg-1ubuntu0.7
  6. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:25.3.2.8+dfsg-1ubuntu4.7
  7. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:27.3.4.6+dfsg-1ubuntu0.1
  8. Upgrade

    Upgrade debian/erlang to a version that resolves this vulnerability.

    Fixed in 1:27.3.4.1+dfsg-1+deb13u4
  9. Upgrade

    Upgrade debian/erlang to a version that resolves this vulnerability.

    Fixed in 1:29.0.6+dfsg-1
  10. Upgrade

    Upgrade debian/erlang to a version that resolves this vulnerability.

    Fixed in 1:27.3.4.1+dfsg-1+deb13u4Fixed in 1:29.0.6+dfsg-1
  11. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 27.3.4.17
  12. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 28.5.0.6
  13. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 29.0.6

Event History

Sep 1, 2026
CVE Published
via MITRE·02:50 PM
Data Sourced
via MITRE·02:50 PM
DescriptionWeakness
Data Sourced
via OSV·02:50 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·03:13 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness
Nov 11, 2026
Updated
via MITRE·01:50 PM
Description
Updated
via NVD·02:17 PM
Description
Nov 18, 2026
Data Sourced
via OSV·02:19 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

Which SNMP deployments are exposed?

Deployments that accept remote SNMP messages are exposed because decoding occurs before PDU processing. An attacker does not need to send a valid request beyond whatever is necessary for the deployment to accept the message.

2

Which fields can be used to trigger the unbounded integer decoding?

The version field is bounded to ten bytes, but the request identifier, error status and index, generic and specific trap fields, engine boots and time, and all varbind values decoded by dec_value/1 use the unbounded decoder.

3

How can I determine whether my Erlang/OTP version is affected?

Affected OTP releases are OTP 17.0 through before 27.3.4.17, OTP 28.0 through before 28.5.0.6, and OTP 29.0 through before 29.0.6. The corresponding affected snmp versions include 4.25.1 through before 5.18.2.1 and 5.19 through before the fixed release indicated by the advisory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203