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

> Deeply nested bencode data in torrent files or magnet links crashes the process via stack overflow; users of the torrent library should care.

- **Severity:** High 7.1 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** Yes
- **Published:** 22 Nov 2026
- **Updated:** 23 Nov 2026
- **Also known as:** GHSA-2wrx-84qj-4pcg, GHSA-39p7-rxxv-rgxj, GO-2026-6894

## What is CVE-2026-134754?

CVE-2026-134754 is a high-severity denial of service vulnerability in anacrolix torrent, published on 22 Nov 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-674 (Uncontrolled Recursion)

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

2 open source packages ship an affected version, including github.com/anacrolix/torrent.

An affected version is exposed as installed. No special setting or call is needed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `github.com/anacrolix/torrent` | Go | `pkg:golang/github.com/anacrolix/torrent` | All versions | 1.61.1-0.20260911233437-76452a2c8a2f |
| `github.com/anacrolix/torrent` | Go | `pkg:golang/github.com/anacrolix/torrent` | All versions | 1.61.1-0.20260911233437-76452a2c8a2f |

Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Upstream |  | fixed | `github.com/anacrolix/torrent` | 1.61.1-0.20260911233437-76452a2c8a2f |

## How do I fix CVE-2026-134754?

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

## Is CVE-2026-134754 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-134754 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-134754 and fix it if it is affected.

What it is: CVE-2026-134754 is a high-severity denial of service vulnerability in anacrolix torrent, published on 22 Nov 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-134754 exists.
Exposure: An affected version is exposed as installed. No special setting or call is needed.

Affected packages and fixed versions:
- github.com/anacrolix/torrent (Go): affected all versions; fixed in 1.61.1-0.20260911233437-76452a2c8a2f
- github.com/anacrolix/torrent (Go): affected all versions; fixed in 1.61.1-0.20260911233437-76452a2c8a2f

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-134754/ (Markdown: https://insights.sbomify.com/CVE-2026-134754/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-134754
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-134754
- OSV: https://osv.dev/vulnerability/CVE-2026-134754

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-134754/
Summaries are generated and may contain mistakes; the official description above is the record.
