Net::BitTorrent versions before 2.1.0 for Perl generate the MSE Diffie-Hellman private…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA Net::BitTorrent (SANKO) Fixed in 2.1.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
SANKO Net::BitTorrent 2.1.0
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2026-41068 Path traversal in SANKO Net::BitTorrentPriority LOW 30
Timeline
- 2026-10-02 Threatist record created from CVE-2026-57082
- 2026-10-03 Alias added: GHSA-3x8p-9jc8-598w
References
More SANKO vulnerabilities
- TI-2026-41070 Uncontrolled resource consumption in SANKO Net::BitTorrent CVSS 3.1HIGH 7.5
- TI-2026-41069 Uncontrolled resource consumption in SANKO Net::BitTorrent CVSS 3.1HIGH 7.5
- TI-2026-41068 Path traversal in SANKO Net::BitTorrent CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-57082 · CVE Program
- CVE-2026-57082 · NVD
- FIRST EPSS
- GHSA-3x8p-9jc8-598w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences