A heap-based buffer overflow occurs during the decompression of multi-block payloads. The issue exists because the compressed and uncompressed sizes from each block header are passed to the `R unzip()` function without verifying them against the remaining bytes in the input and output buffers. This flaw is present in several functions, including `TBasket::ReadBasketBuffers()`, `TKey::ReadObj()`, `TKey::ReadObjWithBuffer()`, `TKey::ReadObjectAny()`, `TKey::Read()`, `TTreeCacheUnzip::UnzipBuffer()`, `TMessage::Uncompress()`, and `RNTupleDecompressor::Unzip()`. An attacker providing a specially crafted ROOT file can cause `R unzip()` to read beyond the input buffer and write decompressed data past the end of the heap buffer, leading to an application crash or potential arbitrary code execution.