GitHub Advisoryadvisory · crates.io

GHSA-369h-pjr2-6wrh Uncontrolled recursion in trust-dns-proto

HIGH Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2018-20994
Ecosystem
crates.io
Packages
trust-dns-proto
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-674
Reviewed
2021-08-19

Affected packages

• crates.io trust-dns-proto: < 0.4.3 → fixed in 0.4.3

Description

There's a stack overflow leading to a crash when Trust-DNS's parses a malicious DNS packet. Affected versions of this crate did not properly handle parsing of DNS message compression (RFC1035 section 4.1.4). The parser could be tricked into infinite loop when a compression offset pointed back to the same domain name to be parsed. This allows an attacker to craft a malicious DNS packet which when consumed with Trust-DNS could cause stack overflow and crash the affected software.

Related

Alias · CVE (1)

  • CVE-2018-20994 An issue was discovered in the trust-dns-proto crate before 0.5.0-alpha.3 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-674 Uncontrolled Recursion weakness

References