Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft deeply nested bencode .torrent or v2 metadata
-
ExploitDeliver as peer metadata or opened file
-
ExecutionTrigger unbounded recursion in Decoder.readOneValue
-
ImpactCrash process via fatal stack overflow (or starve CPU)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | The embedding application must decode attacker-supplied bencode metainfo through anacrolix/torrent - specifically by opening a malicious .torrent file (metainfo.Load/LoadFromFile) or by accepting peer-supplied metadata during a magnet-link/BitTorrent v2 download, which is reassembled and parsed via setInfoBytesLocked within the 16 MiB maxMetadataSize cap. No authentication is required (PR:N). Defect 1 (stack overflow) needs an ~8 MB payload of millions of nested lists; Defect 2 (quadratic CPU) needs only a ~0.2-0.6 MB v2 info dict with a deeply nested file tree. Limiting factors: impact is confined to availability of the single embedding process (no code execution or data exposure), and the conservative remote path requires passive user interaction (opening a torrent or initiating a magnet/v2 fetch) - programmatic server-side ingestion removes even that, making those deployments the higher-risk case. Only affects versions before 1.62.0; updating is the fix (MaxDepth default 64 rejects deeper input with a SyntaxError). |
| Impact | This is a genuine but bounded availability risk - a denial-of-service only, with no confidentiality or integrity impact (VC:N/VI:N, VA:H). The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) and score 7.1 agree with the mechanism: network-reachable, low-complexity, unauthenticated, requiring passive user interaction (opening a .torrent or initiating a magnet/v2 download). The vuln.today Decision label is 'this_week' rather than act_now/emergency, consistent with a serious-but-non-critical DoS. No EPSS score and no CISA KEV entry are present in the input, so there is no signal of active exploitation or mass-automated weaponization; the signals are not conflicting, they are simply weighted toward 'patchable availability bug' rather than 'exploited priority.' A reproduction harness is published in the GHSA advisory, which lowers the bar to exploit but is distinct from evidence of in-the-wild use. Net: real priority for any service that programmatically ingests untrusted torrents/metadata (where UI effectively drops away and a single ~8 MB payload crashes the process unrecoverably), but lower urgency for interactive clients. One caveat to verify: the input tags the issue only CWE-674, yet the advisory describes a second mechanism (CWE-407 quadratic CPU exhaustion in v2 file trees) - both share the root cause and both are fixed by the same patch. |
| Exploit ScenarioDerived | A malicious actor seeds a torrent whose metainfo 'info' value is a bencode list nested a few million levels deep (~8 MB) or publishes a crafted .torrent file. Any application embedding anacrolix/torrent that fetches that metadata from the peer (magnet/v2 download, within the 16 MiB metadata cap) or opens the file routes it through the unbounded bencode decoder and dies with an unrecoverable 'fatal error: stack overflow'; a smaller ~0.2-0.6 MB v2 file tree instead pins a CPU core for 60+ seconds. A full reproduction harness is published in the GHSA advisory, though the input does not confirm a weaponized exploit in the wild. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Unbounded recursion in the anacrolix/torrent bencode decoder lets an unauthenticated remote peer or anyone supplying a crafted .torrent crash the embedding Go process with an unrecoverable 'fatal error: stack overflow', or hang it for roughly 66 seconds per 0.2 MB payload by forcing a quadratic v2 file-tree parse. Every application that ingests attacker-controlled metainfo before v1.62.0 is affected - the bundled CLI tools, servers that open .torrent files, and clients that accept peer metadata for magnet/v2 downloads within the 16 MiB maxMetadataSize cap - and impact is availability only, with no confidentiality or integrity loss. The vendor advisory ships a public reproduction harness, no in-the-wild exploitation has been confirmed (not in CISA KEV), and v1.62.0 fixes both defects by rejecting input nested deeper than a default MaxDepth of 64.
RemediationAI
Vendor-released patch: upgrade to v1.62.0 (https://github.com/anacrolix/torrent/releases/tag/v1.62.0), or to Go module pseudo-version 1.61.1-0.20260911233437-76452a2c8a2f, which contains commit 76452a2c8a2fd9c59d4d4f10fc3495723d538c7b. The fix introduces Decoder.MaxDepth (default 64) so deeper dict/list input is rejected with a SyntaxError instead of recursing, and additionally enforces MaxStrLen on values decoded for Unmarshaler fields. Raising MaxDepth above 64 deliberately trades stack safety for accepting deeper input and should not be done for untrusted metainfo. For deployments that cannot update immediately, the crash is confined to the decoding process, so keep metainfo parsing in a separate, supervised worker so a fatal stack overflow restarts only that component rather than a shared service, and restrict ingestion of untrusted .torrent files and peer metadata to trusted sources - both carry real functional cost, since the library is specifically built to consume untrusted swarm metadata and simply lowering maxMetadataSize does not block the small v2 file-tree payload. Updating is the only complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Bencode is the binary serialization format used by BitTorrent metainfo; the decoder in bencode/decode.go parses nested dictionaries ('d') and lists ('l') by recursing once per nesting level through Decoder.readOneValue, and there is no depth counter or nesting guard anywhere in bencode/ or metainfo/. Because decoding a normal .torrent routes the whole 'info' value through that path (MetaInfo.InfoBytes is a bencode.Bytes Unmarshaler), a list nested a few million levels deep consumes ~256 bytes of stack per level until it passes Go's 1 GiB goroutine-stack limit; Go treats that as a fatal error, so the recover() in Decoder.Decode cannot intercept it and the process dies. The same root cause has a second, distinct effect tracked as CWE-407 alongside CWE-674: metainfo.FileTree.UnmarshalBencode re-runs bencode.Unmarshal over the entire remaining subtree at every level of a BitTorrent v2 'file tree', making parse time grow O(n²) so a ~30,000-level tree costs ~66 seconds of single-goroutine CPU. Existing limits do not help - Decoder.MaxStrLen bounds only a single string value and is not consulted by readOneValue, and the round-trip fuzzers cannot synthesize millions of nesting levels. Entry points include metainfo.Load/LoadFromFile, Client.AddTorrent/AddTorrentFromFile, and the peer path setInfoBytesLocked for magnet/v2 metadata. The trigger is fully described in the advisory; it is deterministic list nesting, not a race or heap-grooming condition. CPE cpe:2.3:a:anacrolix:torrent covers all versions before the fix.
Know when Torrent gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable untrusted metainfo, deterministic nesting pattern (AC:L), no auth (PR:N), conservatively requires the victim to open a torrent or accept peer metadata (UI:R); impact is unrecoverable process DoS only (A:H, C/I:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Technical POC Analysis
Note on identifiers: the supplied advisory (GHSA-2wrx-84qj-4pcg) records "No known CVE" and a headline CVSS of 6.5 (UI:R) rising to 7.5 for unattended ingestion; the 7.1/CVE-2026-134754 metadata in t…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-134754 is a high-severity availability vulnerability in the anacrolix/torrent bencode decoder (prior to v1.62.0) that could allow an unauthenticated remote attacker to crash or severely degrade any Go application or service that ingests attacker-controlled .torrent or magnet metadata. This impacts the availability of torrent-related CLI tools, download servers, and peer-to-peer clients, with no risk to data confidentiality or integrity. Leadership should prioritize remediation because a single crafted 0.2 MB file can cause a multi-second denial of service or a fatal crash, undermining service uptime.
Apply vendor patch. If immediate patching is not possible, restrict ingestion of attacker-controlled .torrent or magnet metadata to trusted sources and reduce the maxMetadataSize cap below 16 MiB as a temporary mitigation, though this does not fully eliminate the risk.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Memory exhaustion in anacrolix/torrent through 1.61.0 allows an attacker-controlled HTTP tracker to return oversized or
Improper TLS certificate validation in anacrolix/torrent before 1.63.0 makes the library's HTTPS tracker client trust an
EUVD-2026-132758
GHSA-39p7-rxxv-rgxj
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB