Home / Blog / DKIM was introduced at a unlucky time; or, happy 20 years…
Tech News

DKIM was introduced at a unlucky time; or, happy 20 years of CVE-2008-0166

A December 2026 scan of Tranco top million domains found 96 still using weak 2006-2008 Debian OpenSSL keys for DKIM, allowing anyone to forge signed email.

By Dillip Chowdary • Dec 06, 2026 • Source: dreamstation.systems

DKIM was introduced at a unlucky time; or, happy 20 years of CVE-2008-0166
Illustration · Pexels

At a glance

Report date
December 5, 2026
Vulnerability
CVE-2008-0166 in Debian and Ubuntu OpenSSL
Key space limit
32,768 keys per architecture and key type
Affected domains
96 of Tranco top million (down from 101)
Weak key sizes
386 under 768 bits, 2,122 at 768-1023 bits
DNS key leaks
18 private keys in DNS, 1 leaked key

Nearly two decades after CVE-2008-0166 exposed a flaw in Debian and Ubuntu OpenSSL packages, 96 domains in the Tranco top million still use those weak keys for DomainKeys Identified Mail. According to dreamstation.systems's report published on December 5, 2026, anyone can forge email that passes cryptographic verification for those domains. The researcher also found thousands of other weak, leaked, or malformed DKIM keys across the same dataset.

This article examines how the 2006 to 2008 OpenSSL entropy bug intersected with the 2007 DKIM standard to leave major organizations exposed today. It is written for mail server administrators, security engineers, and domain owners who manage DNS signing records. It also details the broader key hygiene failures uncovered during the Tranco scan.

01The 2006 Debian OpenSSL entropy bug

Between 2006 and 2008, the Debian package for the OpenSSL cryptography library contained a severe random number generator bug that also affected downstream distributions such as Ubuntu. Most of the entropy meant to power the generator was never fed into its pool. After that code change, the only varying input left in the random number generator was the process identifier, known as the PID.

Because a PID has only 32,768 possible values, the patched Debian OpenSSL library could generate at most 32,768 possible keys per architecture and per key type. The report notes that the flaw was not solely Debian's fault, since an OpenSSL maintainer seemingly and unclearly approved the change. People in the community still argue about how that approval happened.

Once CVE-2008-0166 became public, security researchers and attackers quickly enumerated every possible key in that tiny space. The total number of keys was small enough that an attacker could simply test every candidate key against suspected vulnerable systems. Any cryptographic key generated on affected Debian or Ubuntu systems during that two-year window became trivial to compromise.

02Early DKIM adoption without key rotation

Around the same time that the OpenSSL bug was active, DomainKeys Identified Mail was emerging as a way to authenticate outgoing email. DKIM lets a sender cryptographically sign messages to prove they were authorized to come from a specific domain. In 2007, the first DKIM specification compatible with the modern standard arrived as an IETF Proposed Standard.

Early adopters began implementing DKIM on their mail servers right after the 2007 specification appeared. Because Debian was a popular server operating system and OpenSSL was a respected cryptography library, many administrators generated their initial DKIM keys on those affected systems. Those 2007 keys inherited the 32,768-key limit of CVE-2008-0166 from the start.

Unlike many other cryptographic protocols, the DKIM standard does not require domain owners to rotate their signing keys on a schedule. As a result, keys created during that 2006 to 2008 window can remain valid in DNS records indefinitely if administrators never replace them. That lack of forced rotation kept vulnerable 2007 keys active nearly twenty years later.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

03Ninety-six top domains still exposed

A few weeks before publishing the December 5, 2026 report, the author scraped DKIM DNS records across the Tranco top million domains. Even without filtering the list to domains that actively send email, 96 of those top million domains still publish CVE-2008-0166 keys. Because attackers already know the full 32,768-key space, anyone can forge email carrying a valid signature for those domains.

Before publishing the findings, the researcher emailed most of the affected domain owners to warn them about the exposed keys. Those direct notifications prompted a few administrators to act, bringing the total count of vulnerable top-million domains down from 101 to 96. Despite that outreach, nearly one hundred high-traffic domains still have not rotated their compromised keys.

04Affected organizations and remediation limits

The 96 remaining domains are not limited to abandoned personal sites or obscure blogs. According to the report, the list includes a major standards organization and the healthcare department of a government. Several relatively small-time IT companies also continue to ship CVE-2008-0166 keys in their public DKIM records.

Note: The author declined to name any of the 96 affected domains in the report, explaining that they are trivial to find using the described DNS scraping process. The scan also did not narrow the Tranco top million list down to domains that actively send email.

05Five other DKIM key failures found

While analyzing the scraped Tranco records, the researcher ran every collected DKIM key through the badkeys auditing tool. That pass uncovered thousands of additional configuration and key-strength failures beyond the Debian OpenSSL bug. After the author emailed most of the affected domains, those secondary error counts dropped by roughly 5 percent.

The most severe non-Debian findings involved direct private key exposure in public records or past breaches. The badkeys scan identified 18 private keys published directly in DNS, alongside 1 public key whose matching private key had leaked in an unrelated incident. Any party reading those public DNS entries or past leaks can sign messages for those domains.

Thousands of other domains rely on undersized or broken cryptographic keys that fail modern standards. The December 5, 2026 tally recorded 386 keys under 768 bits, another 2,122 keys between 768 and 1023 bits, and 124 malformed keys. Combined with the 96 CVE-2008-0166 domains, these results show widespread neglect of long-lived DKIM records.

Frequently asked questions

How many top domains still use CVE-2008-0166 DKIM keys?

A scan of the Tranco top million domains found 96 domains still publishing CVE-2008-0166 keys in their DKIM DNS records. That figure dropped from 101 after the researcher emailed most of the affected domain owners.

Why did the 2006 Debian OpenSSL bug only produce 32,768 keys?

Between 2006 and 2008, a patch removed most entropy inputs from Debian and Ubuntu OpenSSL packages, leaving only the process identifier (PID). Because a PID has only 32,768 possible values, OpenSSL could generate at most 32,768 keys per architecture per key type.

Why are 2007 DKIM keys still active in DNS nearly 20 years later?

Early mail server adopters generated DKIM keys on Debian using OpenSSL right after the first modern-compatible DKIM specification arrived as an IETF Proposed Standard in 2007. Because DKIM does not require key rotation, those weak keys remain valid until administrators manually replace them.

What other DKIM key issues did badkeys find in the Tranco scan?

Running the scraped records through badkeys revealed 18 private keys published in DNS, 1 public key tied to an unrelated leaked private key, 386 keys under 768 bits, 2,122 keys between 768 and 1023 bits, and 124 malformed keys.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →