{"id":"CVE-2026-47249","aliases":["CVE-2026-47249","GHSA-w342-mj6g-v9c4","GO-2026-5685"],"related":[],"kind":"vulnerability","state":"published","title":"Klever-Go KVM: Hash-array amplification in P2P resolver request handling","summary":"Klever-Go is the Go implementation of the Klever blockchain protocol. Prior to 1.7.18, the P2P resolver request handling logic is vulnerable to hash-array amplification. A connected peer can send a compressed RequestDataType_HashArrayType direct request that is only 442 bytes on the wire but expands into 200,000 decoded hash entries inside the resolver path. The resolver's antiflood logic counts only a single logical message and the compressed wire size, and while Batch.Decompress() caps the decompressed byte size, it never limits the number of decoded repeated-field items. As a result, both TxResolver and TrieNodeResolver preallocate and iterate over the entire unchecked set of decoded hashes, causing remote memory and CPU amplification against any node that accepts P2P peer connections. This issue is fixed in version 1.7.18.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Klever-Go is the Go implementation of the Klever blockchain protocol. Prior to 1.7.18, the P2P resolver request handling logic is vulnerable to hash-array amplification. A connected peer can send a compressed RequestDataType_HashArrayType direct request that is only 442 bytes on the wire but expands into 200,000 decoded hash entries inside the resolver path. The resolver's antiflood logic counts only a single logical message and the compressed wire size, and while Batch.Decompress() caps the decompressed byte size, it never limits the number of decoded repeated-field items. As a result, both TxResolver and TrieNodeResolver preallocate and iterate over the entire unchecked set of decoded hashes, causing remote memory and CPU amplification against any node that accepts P2P peer connections. This issue is fixed in version 1.7.18.","source":"cvelist"},{"lang":"en","text":"### Summary\nA connected peer can send a compressed `RequestDataType_HashArrayType` direct request that is only `442` bytes on the wire but expands into `200000` decoded hash entries inside the resolver path. On `klever-go` `v1.7.17`, this allows remote memory and CPU amplification against nodes that accept P2P peer connections.\n\n### Details\nResolver antiflood logic accounts only one logical message and the compressed wire size in `data/retriever/resolvers/messageProcessor.go#L30`.\n\n`Batch.Decompress()` in `data/batch/batch.go#L122` enforces an inflated byte cap but does not enforce a decoded repeated-field item cap. After decompression, `TxResolver` preallocates and iterates all decoded hashes in `data/retriever/resolvers/transactionResolver.go#L194`, and `TrieNodeResolver` iterates the same unchecked decoded set in `data/retriever/resolvers/trieNodeResolver.go#L108`.\n\nPinned references:\n- https://github.com/klever-io/klever-go/blob/333f6ec910906e227705fc5767dc897d8fbfc862/data/retriever/resolvers/messageProcessor.go#L30\n- https://github.com/klever-io/klever-go/blob/333f6ec910906e227705fc5767dc897d8fbfc862/data/batch/batch.go#L122\n- https://github.com/klever-io/klever-go/blob/333f6ec910906e227705fc5767dc897d8fbfc862/data/retriever/resolvers/transactionResolver.go#L194\n- https://github.com/klever-io/klever-go/blob/333f6ec910906e227705fc5767dc897d8fbfc862/data/retriever/resolvers/trieNodeResolver.go#L108\n\nThis appears distinct from the public `CVE-2026-44697` / `GHSA-87m7-qffr-542v`, which covered `MultiDataInterceptor` compressed batch fan-in. This report concerns resolver request paths that remain reachable through real libp2p direct-send plumbing on `v1.7.17`.\n\n### PoC\nReproduced with:\n\n```bash\ngo run auditpoc/request_batch_hash_amplification_poc.go\ngo test github.com/klever-io/klever-go/auditpoc -run TestRequestBatchHashAmplification_DirectSendReachability -count=1\n```\n\nObserved output:\n\n```text\nrequest wire bytes: 442\nfits direct-send limit (983040 bytes): true\ntx resolver lookups: 200000\ntrie resolver lookups: 200000\nheap delta before first tx lookup: 17.47 MiB\nok   github.com/klever-io/klever-go/auditpoc\n```\n\nThe E2E harness registers the victim resolver on the request topic and sends the malicious payload through `SendToConnectedPeer()` to prove the work amplification survives the real direct-send path.\n\n### Impact\nA connected peer can convert a sub-kilobyte request into large decode-time memory pressure and synchronous CPU work on the target node. Repeated requests or several concurrent peers can degrade or exhaust validator resources, affecting node availability.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Klever-Go KVM: Hash-array amplification in P2P resolver request handling in github.com/klever-io/klever-go","format":"markdown","source":"go"},{"lang":"es","text":"Klever-Go es la implementación en Go del protocolo de cadena de bloques Klever. Antes de la versión 1.7.18, la lógica de manejo de solicitudes del resolvedor P2P es vulnerable a la amplificación de arreglos de hashes. Un par conectado puede enviar una solicitud directa comprimida de tipo RequestDataType_HashArrayType que tiene solo 442 bytes en el cable, pero se expande a 200.000 entradas de hash decodificadas dentro de la ruta del resolvedor. La lógica anti-inundación del resolvedor cuenta solo un único mensaje lógico y el tamaño comprimido en el cable, y aunque Batch.Decompress() limita el tamaño de bytes descomprimidos, nunca limita el número de elementos de campo repetidos decodificados. Como resultado, tanto TxResolver como TrieNodeResolver preasignan e iteran sobre todo el conjunto no verificado de hashes decodificados, causando amplificación remota de memoria y CPU contra cualquier nodo que acepte conexiones de pares P2P. Este problema está solucionado en la versión 1.7.18.","source":"nvd"}],"published":"2026-06-05T15:27:42.000Z","modified":"2026-10-23T20:10:00.160Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"< 1.7.18","status":"affected"}],"vendor":"klever-io","product":"klever-go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.18"}],"ecosystem":"Go","package":"github.com/klever-io/klever-go","purl":"pkg:golang/github.com/klever-io/klever-go","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.18"}],"ecosystem":"Go","package":"github.com/klever-io/klever-go","purl":"pkg:golang/github.com/klever-io/klever-go","source":"go"}],"references":[{"url":"https://github.com/klever-io/klever-go/security/advisories/GHSA-w342-mj6g-v9c4","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/klever-io/klever-go/releases/tag/v1.7.18","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/klever-io/klever-go","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-10T14:07:15.833Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47249","url":"https://www.cve.org/CVERecord?id=CVE-2026-47249","licence":"CVE Terms of Use","modified":"2026-08-10T14:07:38.266Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w342-mj6g-v9c4","url":"https://github.com/advisories/GHSA-w342-mj6g-v9c4","licence":"CC-BY-4.0","modified":"2026-06-25T23:11:07.054Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5685","url":"https://pkg.go.dev/vuln/GO-2026-5685","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:26.824Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47249","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47249","licence":"Public domain","modified":"2026-10-23T20:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:31.899Z","epss":{"score":0.00278,"percentile":0.21769,"date":"2026-12-01T12:00:22.000Z"}}