GHSA-c8v3-jhv9-4ppc: Use-after-free when setting the locale
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
1/23/2024
Updated
1/23/2024
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
-
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| rust-i18n-support | rust | >= 3.0.0, < 3.0.1 | 3.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from AtomicStr::as_str() accessing an Arc<String> through a raw pointer without incrementing the reference count. The commit diff shows this function was previously implemented with unsafe pointer dereferencing, while the patched version replaced it with arc_swap's Guard system that properly manages references. The CWE-416 classification and advisory description both directly implicate this function as the source of use-after-free conditions in multi-threaded scenarios.