CVE-2026-134754

anacrolix/torrent before 1.62.0 Denial of Service via Bencode Decoder Recursion

Published Nov 22, 2026 CVSS 4.0 · 7.1 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is an uncontrolled recursion (CWE-674) in the Bencode decoder of anacrolix/torrent, allowing an attacker to craft torrent files or magnet link metadata with deeply nested lists. When such input is parsed, the decoder recurses until the call stack overflows or the CPU is saturated by resolving an enormous virtual file tree for v2 torrents. The result is a crash or system slowdown, which compromise application availability but do not directly affect confidentiality or integrity.

Affected Systems

The affected product is anacrolix/torrent, version 1.61.x and all earlier releases before 1.62.0. Applications written in Go that import this library and handle user-supplied torrent or magnet data are subject to the flaw. This includes decentralized file sharing clients or services that process torrent metadata.

Risk and Exploitability

The CVSS score of 7.1 reflects a high impact denial‑of‑service risk. EPSS information is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers can exploit it remotely by supplying a malicious .torrent file or a crafted magnet link; the vulnerability is activated only during decoding of that data. Since the library processes untrusted input, any user who receives the file through network or file exchange could trigger the crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade anacrolix/torrent to version 1.62.0 or newer, which includes a fix that limits recursion depth.
  • If upgrading is not immediately possible, configure the application to reject torrent files that exceed a predefined size or that contain deeply nested structures before passing them to the decoder.
  • Add custom input validation to bound the maximum recursion depth or to reject data that would trigger excessive CPU usage, ensuring the Bencode parser cannot be invoked on crafted payloads.

Generated by OpenCVE AI on November 22, 2026 at 15:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Anacrolix
Anacrolix torrent
Vendors & Products Anacrolix
Anacrolix torrent
Type Values Removed Values Added
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.
Title anacrolix/torrent before 1.62.0 Denial of Service via Bencode Decoder Recursion
First Time appeared Torrentflux Project
Torrentflux Project torrentflux
Weaknesses CWE-674
CPEs cpe:2.3:a:torrentflux_project:torrentflux:*:*:*:*:*:*:*:*
Vendors & Products Torrentflux Project
Torrentflux Project torrentflux
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 22, 2026, 2:16 PM
Reserved
Nov 22, 2026, 1:47 PM
Status
Received
Published
Nov 22, 2026, 3:17 PM
Modified
Nov 22, 2026, 3:17 PM