Description
The miekg Go DNS package before 1.1.25, as used in CoreDNS before 1.6.6 and other products, improperly generates random numbers because math/rand is used. The TXID becomes predictable, leading to response forgeries.
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 | golang-github-miekg-dns | 1.1.26-1 | — |
| Debian 13 | golang-github-miekg-dns | 1.1.26-1 | — |
| Debian 12 | golang-github-miekg-dns | 1.1.26-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | golang-github-miekg-dns | No fix yet | — |
| Ubuntu 18.04 LTS | golang-github-miekg-dns | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/miekg/dns | < 1.1.25 | 1.1.25 | GHSA-44r7-7p62-q3fr |
| Go | github.com/miekg/dns | < 1.1.25-0.20191211073109-8ebf2e419df7 | 1.1.25-0.20191211073109-8ebf2e419df7 | GO-2020-0008 |