ProtobufParser._readStringKey() считывает префикс длины строковой клавиши ввода протобуфа в int, управляемый злоумышленником, а затем проверяет (_inputPtr + len) _inputEnd с использованием подписанной арифметики. Для значений, близких к Integer.MAX_VALUE, сложение переполняется до отрицательного значения, и проверка проходит, даже если входные данные не содержат ключевых данных. Затем парсер вызывает _finishShortText(len), который расширяет текстовый буфер до заявленной длины через TextBuffer.expandCurrentSegment и Arrays.copyOf, бросая OutOfMemoryError: размер массива Requested превышает предел VM.
Достаточно 8-байтного искажённого сообщения, содержащего запись карты с заявленной длиной ключа 0x7FFFFFFF. Настроенные StreamReadConstraints, включая maxStringLength, maxNameLength, maxDocumentLength и maxNestingDepth, не предотвращают сбой. Приложения, работающие с -XX:+ExitOnOutOfMemoryError, прекращают работу JVM.
Это тот же самый шаблон целочисленного потока, адресованный для других сайтов вызовов в исправлении, связанном с CVE-2026-104016 и CVE-2026-104017; сайт вызова ключа карты был исправлен только в ветвях 3.x, оставив соответствующие ветки 2.x без охраны. Релизные линии 2.18, 2.19 и 2.20 не содержат _readStringKey() и не подвержены влиянию этого вектора. Никаких привилегий или взаимодействия с пользователем, кроме возможности отправки данных для анализа, не требуется.
Линия выпуска 3.0 и 3.1.0-3.1.5 / 3.2.0-3.2.1 не содержат _readStringKey() и поэтому не затрагиваются; метод впервые появляется в 3.1.6 и 3.2.2, отражая его введение в 2.21.6 со стороны 2.x.
Показать оригинальное описание (EN)
ProtobufParser._readStringKey() reads the length prefix of a protobuf map entry's string key into an attacker-controlled int and then checks (_inputPtr + len) <= _inputEnd using signed arithmetic. For values near Integer.MAX_VALUE the addition overflows to a negative value and the check passes even when the input contains no key data. The parser then calls _finishShortText(len), which expands the text buffer to the declared length via TextBuffer.expandCurrentSegment and Arrays.copyOf, throwing OutOfMemoryError: Requested array size exceeds VM limit. An 8-byte malformed message containing a map entry with a declared key length of 0x7FFFFFFF is sufficient. Configured StreamReadConstraints, including maxStringLength, maxNameLength, maxDocumentLength and maxNestingDepth, do not prevent the failure. Applications running with -XX:+ExitOnOutOfMemoryError terminate the JVM. This is the same integer-overflow pattern addressed for other call sites in the remediation associated with CVE-2026-104016 and CVE-2026-104017; the map-key call site was corrected on the 3.x branches only, leaving the corresponding 2.x branches unguarded. Release lines 2.18, 2.19 and 2.20 do not contain _readStringKey() and are not affected by this vector. No privileges or user interaction beyond the ability to submit data for parsing are required. The 3.0 release line and 3.1.0-3.1.5 / 3.2.0-3.2.1 do not contain _readStringKey() and are therefore not affected; the method first appears in 3.1.6 and 3.2.2, mirroring its introduction at 2.21.6 on the 2.x side.
Характеристики атаки
Последствия
Строка CVSS v3.1