CVE-2018-17419: Denial of service in github.com/miekg/dns

github.com/miekg/dns Updated 02 Oct 2025

Summary

14/04/2021
Yes i
High
7.5

CVE-2018-17419: Denial of service via malformed zone file in github.com/miekg/dns. Affects github.com/miekg/dns versions < 1.0.10. Fixed in 1.0.10. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package github.com/miekg/dns is a Go library that provides DNS functionality, including parsing and generating DNS messages. It is widely used in Go applications for DNS-related operations. However, a vulnerability has been discovered in the package that can lead to a denial of service (DoS) attack.

Vulnerability Detail

The vulnerability (CVE-2018-17419) in github.com/miekg/dns is due to a nil pointer dereference when parsing a malformed zone file containing TA (Trust Anchor) records. This can be exploited by an attacker to cause a panic, resulting in a DoS condition. If an application parses user-supplied input using this package, it becomes a potential vector for a DoS attack. The impact of this vulnerability is the unavailability of DNS services, which can disrupt the normal functioning of affected systems.

How To Fix

Latest published version: v1.1.73 as of 23 Oct 2026

go get github.com/miekg/dns@v1.1.73

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.0.10

This is the first release that contains the fix.

go get github.com/miekg/dns@v1.0.10

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to update the package to the fixed version as soon as possible.

Conclusion

The vulnerability (CVE-2018-17419) in the github.com/miekg/dns package can lead to a denial of service (DoS) condition. It is recommended to update the package to version 1.0.10 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/miekg/dns →

Share this vulnerability

FAQ

The impact of this vulnerability is a denial of service (DoS) condition, leading to the unavailability of DNS services.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. It analyzes your Gopkg.lock file and provides real-time alerts for open-source vulnerabilities.

No, there is no known workaround for this vulnerability. It is recommended to update the package to the fixed version.

Yes, this vulnerability can be exploited remotely if an application parses user-supplied input using the vulnerable package.

There are no known public exploits available for this vulnerability at the time of this report.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/miekg/dns.

How To Fix

Latest published version: v1.1.73 as of 23 Oct 2026

go get github.com/miekg/dns@v1.1.73

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.0.10

This is the first release that contains the fix.

go get github.com/miekg/dns@v1.0.10

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback