CVE-2026-57082
Last modified
CVE-2026-57082 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| SANKO | Net::BitTorrent | <= 2.0.1 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-57082?
How severe is CVE-2026-57082?
How do I fix CVE-2026-57082?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-57076YAML::Syck versions before 1.47 for Perl allow a heap use-af…7.8
- CVE-2026-57077YAML::Syck versions before 1.47 for Perl allow an out-of-bou…7.7
- CVE-2026-57079Net::BitTorrent versions before 2.1.0 for Perl write files o…5.3
- CVE-2026-5708Unsanitized control of user-modifiable attributes in the ses…8.8
- CVE-2026-57080Net::BitTorrent versions through 2.1.0 for Perl allow remote…7.5
- CVE-2026-57081Net::BitTorrent versions through 2.1.0 for Perl allow remote…7.5
- CVE-2026-57083Use of uninitialized resource in Microsoft Windows Codecs Li…5.5
- CVE-2026-57084Use of uninitialized resource in Windows File Explorer allow…5.5
- CVE-2026-57085Out-of-bounds read in Windows Print Spooler Components allow…3.3
- CVE-2026-57087Heap-based buffer overflow in Microsoft Windows Media Founda…7.8
- CVE-2026-57088Improper access control in Extensible Storage Engine (ESENT)…7.8
- CVE-2026-57089Use after free in Windows SMB Server Network Transport Drive…9.8
Are you affected by CVE-2026-57082?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
