CVE-2021-39480: Denial of service in bingrep
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.49897%
CWE
Published
1/28/2022
Updated
2/3/2023
KEV Status
No
Technology
Rust
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 |
---|---|---|---|
bingrep | rust | = 0.8.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability (CWE-770) involves uncontrolled memory allocation due to untrusted input. The crash log shows an attempt to allocate 0xFFFFFFFFFFFFFFFA bytes, which suggests an integer underflow/wrap in size calculation (e.g., e_shnum * e_shentsize
or similar). The ELF parser's header processing function is the most likely culprit, as it uses header fields (like e_shentsize
and e_shnum
) to compute allocation sizes. The POC's manipulated ELF headers (e.g., large e_shentsize
) would trigger this during section/program header parsing. Without code access, this is inferred from the symptoms and standard ELF parsing patterns.