LowGO-2020-0008CVE-2019-19794GHSA-44r7-7p62-q3fr
Insecure generation of random numbers in github.com/miekg/dns
Published 14 Apr 2021 · Updated 20 May 2024
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-0.20191211073109-8ebf2e419df7
- Fixed in
- 1.1.25-0.20191211073109-8ebf2e419df7
Update to the fixed version for your release line, for example:
go get github.com/miekg/dns@v1.1.25-0.20191211073109-8ebf2e419df7Details
DNS message transaction IDs are generated using math/rand which makes them relatively predictable. This reduces the complexity of response spoofing attacks against DNS clients.
Is GO-2020-0008 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
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.