CVE-2019-25010
Description
An issue was discovered in the failure crate through 2019-11-13 for Rust. Type confusion can occur when __private_get_type_id__ is overridden.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Type confusion vulnerability in the Rust `failure` crate allows attackers to bypass type safety by overriding the private `__private_get_type_id__` method, leading to potential memory corruption.
Vulnerability
Overview
CVE-2019-25010 is a type confusion vulnerability in the Rust failure crate (versions through 2019-11-13) [1]. The crate's __private_get_type_id__ method, intended as a private implementation detail, can be overridden by external code. This allows an attacker to cause type confusion during downcast operations, breaking Rust's memory safety guarantees [3][4].
Exploitation
An attacker can define a type that overrides __private_get_type_id__ to return a different type identifier than the actual type. When the failure crate performs a downcast using this method, it may incorrectly cast a value to an unrelated type. The vulnerability is remotely exploitable with no authentication or user interaction required, as reflected by its CVSS v3.1 base score of 9.8 (Critical) [3].
Impact
Successful exploitation can lead to arbitrary memory read and write, potentially resulting in full compromise of confidentiality, integrity, and availability. The failure crate is deprecated and no patched versions exist; all versions are affected [1][3].
Mitigation
The failure crate has been deprecated in favor of alternatives such as anyhow and thiserror [1]. Users should migrate to these or other error-handling libraries. The vulnerability is tracked in the RustSec advisory database as RUSTSEC-2019-0036 [3]. No official patch is available, so migration is the only effective mitigation.
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
failurecrates.io | <= 0.1.8 | — |
Affected products
2- rust/failuredescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-r98r-j25q-rmprghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2019-25010ghsaADVISORY
- github.com/rust-lang-nursery/failure/issues/336ghsax_refsource_MISCWEB
- rustsec.org/advisories/RUSTSEC-2019-0036.htmlghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.