Неправильная проверка Specified Quantity на уязвимость ввода в декодере BER в Erlang / OTP snmp позволяет неаутентифицированному удаленному злоумышленнику исчерпать CPU через сообщение SNMP, которое содержит OBJECT IDENTIFIER с очень длинным подидентификатором. snmp_pdus:dec_oid_element/3 не ограничивает количество октетов базы-128 в подидентификаторе, а snmp_pdus:dec_oid_elements/3 не ограничивает количество подидентификаторов. Когда значение превышает собственный размер целого числа, каждый последующий октет копирует растущий bignum, и время декодирования растет квадратично с длиной подидентификатора. Агент и менеджер декодируют OIDs перед проверкой строк сообщества или учетных данных SNMPv3 внутри процесса единого сетевого интерфейса (snmpa_net_if или snmpm_net_if).
Этот процесс не читает следующую дейтаграмму до завершения декодирования. Эта проблема затрагивает OTP от OTP 17.0 до OTP 27.3.4.20, OTP 28.5.0.9 и OTP 29.1.3, что соответствует snmp от 4.25.1 до 5.18.2.3, 5.20.2.4 и 5.20.7. Затрагивается ли OTP перед OTP 17.0, соответствующий snmp перед 4.25.1, неизвестно.
Показать оригинальное описание (EN)
Improper Validation of Specified Quantity in Input vulnerability in the BER decoder in Erlang/OTP snmp allows an unauthenticated remote attacker to exhaust CPU via an SNMP message that contains an OBJECT IDENTIFIER with a very long sub-identifier. snmp_pdus:dec_oid_element/3 does not limit the number of base-128 octets in a sub-identifier, and snmp_pdus:dec_oid_elements/3 does not limit the number of sub-identifiers, so one sub-identifier can span the whole datagram. When the value exceeds the native integer size, each further octet copies a growing bignum, and decoding time grows quadratically with the sub-identifier length. The agent and the manager decode OIDs before they check community strings or SNMPv3 credentials, inside the single network interface process (snmpa_net_if or snmpm_net_if). That process does not read the next datagram until decoding completes. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to snmp from 4.25.1 before 5.18.2.3, 5.20.2.4, and 5.20.7. Whether OTP before OTP 17.0, corresponding to snmp before 4.25.1, is affected is unknown.
Характеристики атаки
Последствия
Строка CVSS v4.0