{
  "id": "security/go/anacrolix__torrent/2026-10-06-ut-metadata-negative-index-panic",
  "title": "anacrolix/torrent remote peer crash via negative ut_metadata piece or truncated metadata_size",
  "category": "security",
  "type": "dos",
  "severity": "high",
  "cvss": {
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
    "score": 7.5
  },
  "ecosystem": "go",
  "project": {
    "owner": "anacrolix",
    "repo": "torrent",
    "url": "https://github.com/anacrolix/torrent"
  },
  "affected_versions": [
    "< 1.62.0"
  ],
  "fixed_version": "1.62.0",
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-mmfm-mq95-fhj4",
    "cve_id": null,
    "url": "https://github.com/anacrolix/torrent/security/advisories/GHSA-mmfm-mq95-fhj4",
    "reported_at": "2026-10-06T12:34:32+03:00",
    "published_at": "2026-11-13T00:48:53+03:00",
    "accepted_at": "2026-11-13T11:55:00+03:00"
  },
  "summary": "anacrolix/torrent did not check the lower bound of the bencode-decoded ut_metadata piece index or the extended-handshake metadata_size, which was only checked after truncation to uint32. A single small message from a remote peer can panic the peer connection goroutine and crash the embedding process. Affected versions < 1.62.0. Patched in 1.62.0.",
  "discovered_at": "2026-10-06T00:00:00+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-11-13T12:00:00+03:00",
  "pr": null
}
