96 Top-Million Domains Still Publish DKIM Keys From Debian's 32,768-Key OpenSSL Bug
Security / explainer
96 Top-Million Domains Still Publish DKIM Keys From Debian's 32,768-Key OpenSSL Bug
Debian fixed CVE-2008-0166 on May 13, 2008, but DKIM does not expire keys, and a December 5 scan found 96 domains still signing with the 2006-2008 weak set.

An attacker who can read a domain's DKIM record can recover the private key and sign mail as that domain, provided the key was generated on Debian-based OpenSSL between September 2006 and May 2008 and never rotated. A scan published on December 5, 2026 by a researcher who signs as "robin" found 96 domains in the Tranco top million that still publish such keys.
The fix for the underlying bug, CVE-2008-0166, has existed since May 13, 2008. The fix for a key already published in DNS is to generate a new one and delete the old selector. Nothing in the patch touches a key that was made before it.
The 32,768-key bug and the DKIM timing
Debian Security Advisory DSA-1571, written by Florian Weimer and crediting Luciano Bello with the discovery, says the first vulnerable package was OpenSSL 0.9.8c-1, uploaded to Debian unstable on 2006-09-17. It recommends that "all cryptographic key material which has been generated by OpenSSL versions starting with 0.9.8c-1 on Debian systems is recreated from scratch." Fixed versions are 0.9.8c-4etch3 for Debian etch and 0.9.8g-9 for testing and unstable.
The robin post explains the mechanism: after a Debian change to the random number generator, the only varying input was the process ID, which has 32,768 possible values. That leaves 32,768 possible keys per architecture per key type. The change traces to a May 2006 openssl-dev thread in which Ulf Möller replied to a proposal to remove the lines with "Not much. If it helps with debugging, I'm in favor of removing them." The post says whether that amounted to approval is still disputed.
DKIM arrived into that window. The post notes that the first version compatible with today's DKIM was an IETF Proposed Standard, RFC 4871, in 2007, and early adopters generated keys on Debian machines. DKIM does not require key rotation, so a 2007 key can still validate in 2026.

What the scan found
The post says robin scraped DKIM DNS records for the Tranco top million domains a few weeks before publication. Even without filtering for domains that send mail, 96 still publish CVE-2008-0166 keys, down from 101 before robin emailed most of them. The affected domains reportedly include a major standards organisation, a government healthcare department and several small IT companies; the post names none of them, so none of that can be checked independently.
Running the same scrape through badkeys, the key checker maintained by Hanno Böck, produced the figures below. They cover every key in the scrape, not only Debian ones, and sit about 5% below the counts from before the emails.
- Keys of 768 to 1023 bits2122 keys
- Keys under 768 bits386 keys
- Malformed keys124 keys
- Private keys published in DNS18 keys
- Private key leaked elsewhere1 keys
Source: robin, dreamstation.systems, December 5, 2026 (researcher's figures, not independently reproduced)
The score understates the forgery risk
NVD, which last modified the CVE-2008-0166 record on 2026-06-16, rates it 7.5 High (CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N). The vector assigns integrity impact None, because the original concern was guessed keys exposing traffic. For a DKIM key the damage is integrity: a validly signed message from a government health department domain is the attack.
The score understates it for another reason. Exploitation here needs no vulnerable server. The attacker enumerates 32,768 candidate keys offline per architecture and key type, compares them with the public key in DNS, and signs. No evidence of such forgery has been published; the post claims only that it is possible.
What to do
Check every DKIM selector against the badkeys checks for CVE-2008-0166 (badkeys lists the Debian OpenSSL bug among its detections) and rotate any key whose creation date predates 2008. Remove the old selector from DNS rather than leaving it published, since a published key validates whether or not the sending server still uses it. Retiring old keys is the same discipline behind GitHub's removal of ssh-rsa on January 13, and the same checker appears in our report on its small-key check and the eMudhra CA key.
Sources
More in Security
- 01Resold Telstra 5G Modem 2 Arrived Joined to a Stranger's Tailscale Network, With a Root Telnet ShellA buyer's teardown dates the Tailscale node to the day the buyer first messaged the seller; the post claims no proof the access was ever used.
- 02EU Says Meta Failed to Stop Scam Ads on Facebook and Instagram, Cites Four Risk Reports With No ChangeThe Commission's December 3 preliminary findings under the DSA cite 'billions of impressions' and a fine ceiling of 6% of turnover; Meta rejects them.
- 03Chrome Switches Its Variations Seed to ML-DSA-44 Plus P-256, and Retires the Old Key After One Valid SeedGerrit history shows the signing change landed a day after a Critical Variations fix, and an open follow-up says hybrid signing is not yet on for all clients.
- 04GitHub Drops ssh-rsa on Jan. 13, With a Second Brownout Dec. 9The same change adds ML-KEM post-quantum key exchange for SSH everywhere except GitHub's U.S. region.