The bencode decoder lacks a limit on the nesting depth of dictionaries and lists, leading to two types of denial-of-service scenarios. First, the `Decoder.readOneValue()` function in `bencode/decode.go` recurses without a depth bound, allowing a crafted `.torrent` file or magnet link metadata with millions of nested lists to trigger a fatal stack overflow, crashing the process. Second, the `metainfo.FileTree.UnmarshalBencode()` function in BitTorrent v2 re-parses subtrees at every level, resulting in quadratic CPU exhaustion that can cause the process to hang. These issues are reachable via locally opened `.torrent` files or metadata received from remote peers during magnet or v2 downloads.