Description
The ldns-keygen tool in ldns 1.6.x uses the current umask to set the privileges of the private key, which might allow local users to obtain the private key by reading the file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ldns | 1.6.17-4 | — |
| Debian 13 | ldns | 1.6.17-4 | — |
| Debian 12 | ldns | 1.6.17-4 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | ldns | 1.6.17-8ubuntu0.1 | USN-3491-1 |
| Ubuntu 14.04 LTS | ldns | 1.6.17-1ubuntu0.1 | USN-3491-1 |
Advisories 1
- USN-3491-1 ldns vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
References
- [oss-security] 20140503 ldns-keygen creates private key world readable mailing-list
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746758
- https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=573
- [oss-security] 20140504 Re: ldns-keygen creates private key world readable mailing-list
- 67200 vdb-entry