CVE-2008-0166
High · 7.5CVSS
7.5
EPSS
70.7%
Published
May 13, 2008
CISA due date
—
Cloudanix analysis
A problem in how certain older systems created random numbers for secret keys allowed attackers to guess those keys and read protected information.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw causes the OpenSSL random number generator on affected Debian-based systems to produce predictable values, resulting in cryptographic keys with drastically reduced entropy that can be brute-forced by remote attackers.
Why it matters to the business
Organizations using the affected package face risk of encryption key compromise leading to unauthorized access to sensitive data; the issue has been public for years with public exploits available, though limited to one downstream product with a known fix.
How an attack unfolds
An attacker identifies systems using keys generated by the weak RNG, obtains samples of the predictable output patterns, and performs offline brute-force attacks to recover the private keys, enabling decryption of traffic or authentication bypass; public exploit code has existed since disclosure.
How to fix it
Upgrade percona-xtrabackup-binary (Bitnami) to version 2.2.24 or later; after upgrade, regenerate all cryptographic keys and certificates that were created on affected systems.
How to confirm the fix worked
Verify the installed package version meets or exceeds 2.2.24; inspect certificate issuance dates and regenerate any keys created before the upgrade; test key strength with entropy analysis tools.
Typical attack path
- Scan for services exposing certificates or keys generated on affected Debian/OpenSSL versions
- Collect public key material or handshake data
- Apply known Debian OpenSSL PRNG weakness to reduce keyspace
- Brute-force recover the private key offline
- Use recovered key to decrypt sessions or authenticate to services
How to detect it
Review package version history and key generation timestamps in system logs; search for certificates or keys created between 2006 and 2008 on Debian-based hosts; examine network traffic for use of keys matching known weak Debian OpenSSL patterns.
- openssl 0.9.8c-1 through 0.9.8g-8
- Debian OpenSSL predictable PRNG key patterns
- percona-xtrabackup-binary versions prior to 2.2.24
What your security team should do
- Immediately upgrade the listed package to the fixed version 2.2.24
- Regenerate all keys and certificates created with the vulnerable RNG
- Scan historical logs and backups for evidence of weak key usage
- Prioritize key rotation on any externally facing services
The record
OpenSSL 0.9.8c-1 up to versions before 0.9.8g-9 on Debian-based operating systems uses a random number generator that generates predictable numbers, which makes it easier for remote attackers to conduct brute force guessing attacks against cryptographic keys.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | openssh | 0 | 4.7p1-9 |
| Debian:10 | openssl | 0 | 0.9.8g-9 |
| Debian:11 | openssh | 0 | 4.7p1-9 |
| Debian:11 | openssl | 0 | 0.9.8g-9 |
| Debian:12 | openssh | 0 | 4.7p1-9 |
| Debian:12 | openssl | 0 | 0.9.8g-9 |
| Debian:13 | openssh | 0 | 4.7p1-9 |
| Debian:13 | openssl | 0 | 0.9.8g-9 |
| Debian:4.0 | openssh | 0 | 1:4.3p2-9etch2 |
| Debian:4.0 | openssl | 0 | 0.9.8c-4etch3 |
Related vulnerabilities
- CVE-2023-51767 OpenSSH through 10.0, when common types of DRAM are used, might allow row hammer attacks… Also affects openssh
- CVE-2023-51385 In ssh in OpenSSH before 9.6, OS command injection might occur if a user name or host… Also affects openssh
- CVE-2021-36368 An issue was discovered in OpenSSH before 8.9. Also affects openssh
- CVE-2021-41617 sshd in OpenSSH 6.2 through 8.x before 8.8, when certain non-default configurations are… Also affects openssh
- CVE-2016-20012 OpenSSH through 8.7 allows remote attackers, who have a suspicion that a certain… Also affects openssh
- CVE-2017-15906 The process_open function in sftp-server.c in OpenSSH before 7.6 does not properly… Also affects openssh
- CVE-2016-10011 authfile.c in sshd in OpenSSH before 7.4 does not properly consider the effects of… Also affects openssh
- CVE-2016-10012 The shared memory manager (associated with pre-authentication compression) in sshd in… Also affects openssh