MediumGHSA-44r7-7p62-q3frCVE-2019-19794GO-2020-0008
miekg/dns insecurely generates random numbers
Published 18 May 2021 · Updated 8 Nov 2023
Is your project on an affected github.com/miekg/dns?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.1.25
- Fixed in
- 1.1.25
Update to the fixed version for your release line, for example:
go get github.com/miekg/dns@v1.1.25Details
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.
Is GHSA-44r7-7p62-q3fr in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/miekg/dns, and gives you the command that fixes it.
More advisories for github.com/miekg/dns
- HighCVE-2017-15133Denial of Service in miekg-dns · 29 Jun 2021
- HighCVE-2018-17419miekg/dns parsing error leads to nil pointer dereference and DoS · 18 May 2021
- LowCVE-2017-15133Denial of service via open idle connection in github.com/miekg/dns · 14 Apr 2021
- LowCVE-2018-17419Denial of service via malformed zone file in github.com/miekg/dns · 14 Apr 2021
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-19794
- Linkgithub.com/coredns/coredns/issues/3519
- Linkgithub.com/coredns/coredns/issues/3547
- Linkgithub.com/miekg/dns/issues/1037
- Linkgithub.com/miekg/dns/issues/1043
- Linkgithub.com/miekg/dns/pull/1044
- Linkgithub.com/miekg/dns/commit/8ebf2e419df7857ac8919baa05248789a8ffbf33
- Linkgithub.com/miekg/dns/compare/v1.1.24...v1.1.25
- Linkpkg.go.dev/vuln/GO-2020-0008
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.