Read the docs

Uncontrolled recursion in anacrolix torrent bencode decoder

Priority MEDIUM 64CWE-674Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-674.

Summary

anacrolix/torrent before 1.62.0 contains uncontrolled recursion in Decoder.readOneValue in bencode/decode.go, which is CWE-674. If a user loads a crafted .torrent file or magnet link metadata containing deeply nested bencode data, an attacker can crash the process with a stack overflow. Deeply nested v2 file trees can also exhaust CPU.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00562 40th percentileScored 2026-11-30
Fix Fixed torrent (anacrolix): 1.62.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
anacrolixtorrentbefore 1.62.01.62.0Patch availableCNA
  • torrent Vendoranacrolix Affected before 1.62.0 Fixed in 1.62.0 Patch available CNA

Remediation

Upgrade anacrolix/torrent to version 1.62.0 or later, which fixes the flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

  • Fix · CNA torrent (anacrolix) Fixed in 1.62.0

Timeline

  1. 2026-11-22 Threatist record created from CVE-2026-134754
  2. 2026-11-22 Alias added: GHSA-39p7-rxxv-rgxj
  3. 2026-11-23 CISA SSVC decision points changed

References

  • TI-2026-85478 Memory exhaustion in anacrolix/torrent via HTTP tracker responses CVSS 4.0HIGH 7.1
  • TI-2026-96555 Improper certificate validation in anacrolix torrent HTTPS tracker client CVSS 4.0MEDIUM 6.3

Sources