CVE-2019-25010: Rust Failure Crate Vulnerable to Type confusion
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.61972%
CWE
Published
8/25/2021
Updated
11/9/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
failure | rust | <= 0.1.8 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems directly from the ability to override private_get_type_id in manual implementations of the Fail trait. This method is used internally for type checking during downcasting operations. When overridden incorrectly, it breaks the type system's assumptions, leading to type confusion (CWE-843). The advisory explicitly states that derived implementations are safe, but manual implementations of this specific method create the vulnerability. Multiple sources (CVE, GHSA, RustSec) directly reference this function as the attack vector.