LowGO-2026-6894GHSA-2wrx-84qj-4pcg

anacrolix torrent has unbounded recursion in the bencode decoder that causes stack-overflow crash and CPU-exhaustion DoS in github.com/anacrolix/torrent

Published 5 Nov 2026 · Updated 5 Nov 2026

Is your project on an affected github.com/anacrolix/torrent?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<1.61.1-0.20260911233437-76452a2c8a2f
Fixed in
1.61.1-0.20260911233437-76452a2c8a2f
Update to the fixed version for your release line, for example:go get github.com/anacrolix/torrent@v1.61.1-0.20260911233437-76452a2c8a2f

Details

anacrolix torrent has unbounded recursion in the bencode decoder that causes stack-overflow crash and CPU-exhaustion DoS in github.com/anacrolix/torrent

Is GO-2026-6894 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/anacrolix/torrent, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.