HighGHSA-9jcx-pr2f-qvq5CVE-2018-17419GO-2020-0028

miekg/dns parsing error leads to nil pointer dereference and DoS

Published 18 May 2021 · Updated 20 May 2024

Is your project on an affected github.com/miekg/dns?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<1.0.10
Fixed in
1.0.10
Update to the fixed version for your release line, for example:go get github.com/miekg/dns@v1.0.10

Details

An issue was discovered in setTA in scan_rr.go in the Miek Gieben DNS library before 1.0.10 for Go. A dns.ParseZone() parsing error causes a segmentation violation, leading to denial of service.

Is GHSA-9jcx-pr2f-qvq5 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
  • MediumCVE-2019-19794miekg/dns insecurely generates random numbers · 18 May 2021
  • LowCVE-2017-15133Denial of service via open idle connection in github.com/miekg/dns · 14 Apr 2021
  • LowCVE-2019-19794Insecure generation of random numbers in github.com/miekg/dns · 14 Apr 2021
github.com/miekg/dns security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.