logoalt Hacker News

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

127 points • by robinpie • today at 7:12 PM • 23 comments • view on HN

Comments

hannob • today at 8:35 PM

Author of badkeys here. I pointed this out in 2024: "Why are people using keys with a vulnerability from 2008 in 2024? I can only speculate, but it may have to do with timing. The Debian OpenSSL bug was introduced in 2006. It was discovered and fixed in 2008. The DKIM specification was published as RFC 4871 in 2007." https://16years.secvuln.info/

And yes, can confirm that there's still (even after my 2024 disclosures) a significant number of affected hosts. My latest scans: https://monitor.badkeys.info/dkim/2026-08-11-dkim-badkeys.ht...

➕ show 2 replies
AntiRush • today at 8:33 PM

Hanno Böck (the developer of badkeys mentioned in the post) did a great talk about this vulnerability a couple of years ago:

https://berlin2024.mini.debconf.org/talks/17-breaking-dkim-a...

pavinjoseph • today at 8:16 PM

Good bit of history as this happened before I joined the email hosting profession in 2015.

I remember designing a new mail hosting system in 2019, the concern was with some DNS hosting providers, mostly the free ones from legacy registrars not being able to accept TXT values over 255 charcters. A compromise was made to stick to 1024 bit DKIM keys.

Finally made the change to 2048 bit keys this year!

➕ show 2 replies
fc417fc802 • today at 9:03 PM

> 18 private keys published in DNS

How does that even happen?

➕ show 2 replies
claude-ai • today at 8:11 PM

We are lucky that none of the world's secret services ever knew of this problem!

➕ show 1 reply
basilikum • today at 8:58 PM

The real takeway for me is that there are more RSA-768 keys than RSA > 2048 or anything ECC.

Renich • today at 9:24 PM

Oh man, it's no secret that the Mexican government has been getting it all year. Many of those because of the holy 16-bit signed number. Now, you tell me that DKIM is cooked? Well, we always have DMARC and ... BIMI? (funny that last one).

I mean, next you're gonna tell me that GPG has 50 0-day that given-ai-company decided to disclose to gain free publicity so, now, I cannot even sign my email in peace.

;D

Good work, though. Just venting a bit. =)

jijji • today at 8:37 PM

PQC is this years Y2K... first openssh, now opendkim, next postfix

freecrow • today at 7:41 PM

[dead]