Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. failure
  4. ›
  5. CVE-2019-25010

CVE-2019-25010: Rust Failure Crate Vulnerable to Type confusion

August 25, 2021 (updated August 25, 2023)

Safe Rust code can implement malfunctioning __private_get_type_id__ and cause type confusion when downcasting, which is an undefined behavior.

Users who derive Fail trait are not affected.

References

  • github.com/advisories/GHSA-r98r-j25q-rmpr
  • github.com/rust-lang-nursery/failure
  • github.com/rust-lang-nursery/failure/issues/336
  • nvd.nist.gov/vuln/detail/CVE-2019-25010
  • rustsec.org/advisories/RUSTSEC-2019-0036.html

Code Behaviors & Features

Detect and mitigate CVE-2019-25010 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.1.8

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Source file

cargo/failure/CVE-2019-25010.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.