
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (GHSA-4v52-7q2x-v4xj) affects the eyre Rust package versions 0.6.9 through 0.6.11, discovered and disclosed in April 2024. The issue involves incorrect type downcasting in the Report structure, which can lead to memory corruption and resource leaks. This high-severity vulnerability affects the core functionality of error handling in the eyre crate (GitHub Advisory).
The vulnerability occurs when using Report::downcast after constructing a Report using wrap_err or wrap_err_with. Two scenarios can trigger the issue: 1) When downcasting to type E, a value of type D is incorrectly dropped using E's drop behavior, and 2) When downcasting to type D, the remaining value of type E is dropped at the wrong memory location. The vulnerability has a CVSS score of 7.5 (High) with attack vector: Network, attack complexity: Low, and privileges required: None (GitHub Advisory, RustSec).
The primary impacts include memory corruption when the Report contains an error with nontrivial drop behavior. In cases where the error has trivial drop behavior but contains types with nontrivial drop behavior (such as String), the vulnerability can result in memory leaks. This affects the reliability and security of applications using the affected versions of the eyre crate (RustSec).
The vulnerability can be triggered through normal usage of the Report::downcast functionality, particularly when working with error types that have different sizes or drop behaviors. The issue was first identified through test cases that resulted in segmentation faults and memory errors (GitHub Issue).
The vulnerability has been patched in version 0.6.12 of the eyre crate. Users are strongly advised to upgrade to this version or later. Versions prior to 0.6.9 are not affected by this vulnerability (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."