Skip to content
OpenAdvisories
Medium · 5.9 CVE-2019-19794 EUVD-2021-0929GHSA-44r7-7p62-q3frGO-2020-0008

miekg/dns insecurely generates random numbers

Published Dec 13, 2019 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS golang-github-miekg-dns No fix yet —
Ubuntu 18.04 LTS golang-github-miekg-dns No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
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

References