Denial of Service (DoS) Affecting trust-dns package, versions >=0.16.0 <0.18.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Denial of Service (DoS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-TRUSTDNS-1244078
  • published8 Jan 2020
  • disclosed6 Jan 2020
  • creditDarkspirit

Introduced: 6 Jan 2020

CVE-2020-35857  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade trust-dns to version 0.18.1 or higher.

Overview

trust-dns is a DNS server written in Rust.

Affected versions of this package are vulnerable to Denial of Service (DoS). There's a stack overflow leading to a crash and potential DOS when processing additional records for return of MX or SRV record types from the server.

This is only possible when a zone is configured with a null target for MX or SRV records, i.e. '.'.

Example affected zone record:

no-service 86400 IN MX 0 .

CVSS Scores

version 3.1