CVE-2020-36562: shiyanhui/dht vulnerable to Uncontrolled Resource Consumption
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.41057%
CWE
Published
12/28/2022
Updated
2/3/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/shiyanhui/dht | go | <= 0.0.0-20201219151056-5a20f3199263 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The GitHub issue #57 explicitly identifies the handleRequest function in krpc.go as containing multiple unchecked type assertions that can cause panics. The vulnerability manifests when processing malicious bencoded messages with unexpected data types in key fields (like 't' or 'id'), which triggers runtime panics due to failed type assertions without proper error handling. This matches the CWE-617 (Reachable Assertion) description and the advisory's explanation of uncontrolled resource consumption through denial of service.