CVE-2018-20994:
Uncontrolled recursion in trust-dns-proto
7.5
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
8/25/2021
Updated
6/13/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
trust-dns-proto | rust | < 0.4.3 | 0.4.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability centers around improper handling of DNS message compression. The Name::from_bytes function is the primary entry point for parsing domain names in DNS packets, including handling compression pointers. The lack of recursion depth tracking or visited offset validation in this function would allow malicious pointers to create infinite parsing loops. This matches the CWE-674 (Uncontrolled Recursion) description and the advisory's technical details about compression pointer mishandling. The file path follows standard Rust crate structure for DNS protocol handling components.