CVE-2026-134754: anacrolix torrent has unbounded recursion in the bencode decoder that causes stack-overflow crash and CPU-exhaustion DoS in github.com/anacrolix/torrent
Published 2026-11-05 · Updated 2026-11-22 · Also known as GHSA-2wrx-84qj-4pcg, GO-2026-6894
Summary
The anacrolix torrent library contains an unbounded recursion vulnerability within its bencode decoder. Developers using this library should update to the specified patched version to prevent stack-overflow crashes and CPU exhaustion.
Who is affected
Affected deployments are susceptible to denial-of-service (DoS) attacks when processing malicious bencode data. The vulnerability triggers stack exhaustion and excessive CPU usage, potentially crashing the application or rendering it unresponsive.
Exploitability
The exploitability is not documented as there is no provided CVSS vector, EPSS score, or record in the CISA Known Exploited Vulnerabilities catalog. The lack of specific exploit data means the current real-world threat level cannot be definitively calculated.
Remediation
- Update github.com/anacrolix/torrent to version 1.61.1-0.20260911233437-76452a2c8a2f or higher.
- Verify dependency versions by running 'go list -m github.com/anacrolix/torrent' in the project root.
How to check your project
- Run 'go list -m all' to identify if the vulnerable package is included in the dependency tree.
- Inspect go.mod and go.sum files to check for the presence of versions prior to 1.61.1-0.20260911233437-76452a2c8a2f.
Automated analysis of the published advisory data, generated 2026-11-22. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/anacrolix/torrent |
>= 0, < 1.61.1-0.20260911233437-76452a2c8a2f | 1.61.1-0.20260911233437-76452a2c8a2f | go get github.com/anacrolix/[email protected] |
FAQ
Is this vulnerability actively exploited?
There is no evidence of active exploitation, as the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
What specifically triggers the DoS condition?
The DoS is triggered by unbounded recursion in the bencode decoder, which leads to stack exhaustion and CPU-intensive processing when parsing crafted inputs.
Where can I find the official fix?
The fix is included in version 1.61.1-0.20260911233437-76452a2c8a2f of github.com/anacrolix/torrent.
Original advisory description
References
- ADVISORY https://github.com/anacrolix/torrent/security/advisories/GHSA-2wrx-84qj-4pcg
- FIX https://github.com/anacrolix/torrent/commit/76452a2c8a2fd9c59d4d4f10fc3495723d538c7b
Source records: GO-2026-6894 (OSV.dev) · EPSS by FIRST, 2026-11-26.