# CVE-2026-134754: anacrolix/torrent before 1.62.0 Denial of Service via Bencode Decoder Recursion

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Passive; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.56% (percentile 40, 2026-11-28)
- **CWE:** CWE-674
- **Aliases:** GHSA-2wrx-84qj-4pcg, GO-2026-6894
- **Published:** 2026-11-05T22:55:03.000Z
- **Modified:** 2026-11-24T20:38:28.417Z

## Who should check

- Projects that depend on Go package github.com/anacrolix/torrent (\< 1.61.1-0.20260911233437-76452a2c8a2f)
- Anyone running anacrolix torrent \< 1.62.0

## 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.

## Affected and fixed versions

- Go `github.com/anacrolix/torrent`: affected \< 1.61.1-0.20260911233437-76452a2c8a2f; fixed 1.61.1-0.20260911233437-76452a2c8a2f (osv)
- anacrolix torrent: \< 1.62.0 (cvelist)

## Technologies

Go modules

## Mitigation

- Upgrade github.com/anacrolix/torrent to 1.61.1-0.20260911233437-76452a2c8a2f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-134754. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-134754.md
Affected: github.com/anacrolix/torrent < 1.61.1-0.20260911233437-76452a2c8a2f
Fixed in: 1.61.1-0.20260911233437-76452a2c8a2f

Steps:
1. Search this machine and project for github.com/anacrolix/torrent (Go), anacrolix torrent: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-134754 being exploited?

There is no confirmed exploitation: CVE-2026-134754 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.56% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-134754?

High: CVSS 7.1 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-134754?

github.com/anacrolix/torrent \< 1.61.1-0.20260911233437-76452a2c8a2f.

### Is there a fix for CVE-2026-134754?

Yes. Fixed in 1.61.1-0.20260911233437-76452a2c8a2f. Upgrade github.com/anacrolix/torrent to 1.61.1-0.20260911233437-76452a2c8a2f or later.

### How do I check if I'm affected by CVE-2026-134754?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/anacrolix/torrent/security/advisories/GHSA-2wrx-84qj-4pcg>
- patch: <https://github.com/anacrolix/torrent/commit/76452a2c8a2fd9c59d4d4f10fc3495723d538c7b>
- article: <https://github.com/anacrolix/torrent/blob/v1.61.0/bencode/decode.go#L532-L591>
- article: <https://github.com/anacrolix/torrent/blob/v1.61.0/metainfo/file-tree.go#L35-L50>
- other: <https://pkg.go.dev/vuln/GO-2026-6894>
- other: <https://github.com/anacrolix/torrent/releases/tag/v1.62.0>
- other: <https://www.vulncheck.com/advisories/anacrolix-torrent-before-1.62.0-denial-of-service-via-bencode-decoder-recursion>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-134754>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-6894> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-134754> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-134754>
