SecurityContext

CVE-2026-57082: Net::BitTorrent - Weak Cryptography

  • Cve: CVE-2026-57082
  • Name: Net::BitTorrent - Weak Cryptography
  • Description: Net::BitTorrent versions before 2.1.0 for Perl generate the MSE Diffie-Hellman private key with a non-cryptographic PRNG. The MSE (Message Stream Encryption) handshake derives its 160-bit Diffie-Hellman private key from Perl's rand(), a non-cryptographic drand48-class generator seeded once per process, in KeyExchange.pm. The shared secret and the RC4 keys derived from it (the SHA-1 of "keyA" or "keyB", the shared secret, and the infohash) therefore depend entirely on a predictable PRNG. The same handshake sends, in cleartext, random padding drawn from the same rand() sequence in _random_pad, immediately after the public key and the private-key draw. A passive observer of the handshake recovers the PRNG state from the cleartext padding, reconstructs the private key, computes the shared secret from the peer's public key on the wire, derives the RC4 keys, and decrypts the connection, defeating the passive-observation obfuscation MSE provides.
  • Impact: Passive attackers can decrypt MSE-encrypted connections, exposing all transmitted data.
  • Remediation: Update to a version that uses a cryptographically secure PRNG for key generation or latest available version.
  • Vulnerability type: weak_cryptography
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.9
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00234
  • Epss percentile: 0.14271
  • Assignee: 9b29abf9-4ab0-4765-b253-1875cd9b441e
  • Published at: 2026-06-30T12:16:25Z
  • Age in days: 147
  • Modified at: 2026-10-25T21:10:00Z
  • References total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-57082
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-330Use of Insufficiently Random Values

References

UrlSourceTags
https://github.com/sanko/Net-BitTorrent.pm/security/advisories/GHSA-g444-x2c5-94hcnvd
https://metacpan.org/release/SANKO/Net-BitTorrent-v2.1.0/changesnvd

Projects

RepositoryLink kindsIndexedUrl
sanko/Net-BitTorrent.pmfix, security_advisoryyes/v1/repositories/sanko/Net-BitTorrent.pm

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts