Read the docs
TI-2024-38498 Aliases GHSA-3gjh-29fv-8hr6

Nervos CKB Snappy decompress length can be very large and causes out of memory error

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

### Impact Adversary can create message which compressed size is less than the package limit but the decompressed length is very large such as 1G. It will cost the node many memories to process the network messages, and on the system with less than 1G memory, the process is killed directly because of out of memory error. ### Patches The node must check the decompress length before allocating the memory for the message. ### References * https://github.com/nervosnetwork/ckb/blob/687d797f1888dd05d1f38ce6d1bef3e5b9b6e38b/network/src/compress.rs#L68 * https://github.com/BurntSushi/rust-snappy/blob/master/src/decompress.rs#L106 * https://github.com/BurntSushi/rust-snappy/blob/6cfb836463b9b3ac48ca7cd15d0a50d030e95769/src/decompress.rs#L30

Why it matters now

Fix Fixed ckb (crates.io): 0.34.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—ckb (crates.io)before 0.34.20.34.2Patch availableGHSA-3gjh-29fv-8hr6
  • ckb (crates.io) Vendor— Affected before 0.34.2 Fixed in 0.34.2 Patch available GHSA-3gjh-29fv-8hr6

Remediation

  • Fix · GHSA-3gjh-29fv-8hr6 ckb (crates.io) Fixed in 0.34.2 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-3gjh-29fv-8hr6

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences