anacrolix/torrent before 1.62.0 Denial of Service via Bencode Decoder Recursion
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 22, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 22, 2026
Description
anacrolix/torrent before 1.62.0 contains an uncontrolled recursion vulnerability in Decoder.readOneValue in bencode/decode.go that allows attackers to crash the process by supplying deeply nested bencode data. Attackers can deliver crafted .torrent files or magnet link metadata with millions of nested lists to cause a fatal stack overflow, or deeply nested v2 file trees to exhaust CPU.
| Product | Versions |
|---|---|
| torrent anacrolix | before 1.62.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | VulnCheck | |
| 3.1 | 6.5 Medium | VulnCheck |
Weaknesses
- CWE-674 Uncontrolled Recursion
References
- GitHub Security Advisory (GHSA-2wrx-84qj-4pcg)Vendor Advisory
- https://pkg.go.dev/vuln/GO-2026-6894Third-Party Advisory
- https://github.com/anacrolix/torrent/commit/76452a2c8a2fd9c59d4d4f10fc3495723d538c7bPatch
- https://github.com/anacrolix/torrent/blob/v1.61.0/bencode/decode.go#L532-L591Technical Details
- https://github.com/anacrolix/torrent/blob/v1.61.0/metainfo/file-tree.go#L35-L50Technical Details
- torrent v1.62.0 Release NotesRelease Notes
- VulnCheck Advisory: anacrolix/torrent before 1.62.0 Denial of Service via Bencode Decoder RecursionThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.