Vulnerability DatabaseGHSA-c8v3-jhv9-4ppc

GHSA-c8v3-jhv9-4ppc
Rust vulnerability analysis and mitigation

Overview

A use-after-free vulnerability was discovered in rust-i18n-support package versions 3.0.0 to 3.0.1. The vulnerability was introduced in version 3.0.0 with the implementation of AtomicStr type, which is used to store the current locale. The issue was discovered on January 19, 2024, and was officially disclosed on January 23, 2024, affecting the locale handling functionality in the package (RustSec Advisory).

Technical details

The vulnerability stems from the AtomicStr type's implementation, which stores the locale as a raw pointer to an Arc. The critical flaw occurs in the AtomicStr::as_str() method, which does not increment the usage counter of the Arc. This implementation oversight means that when the locale is changed in one thread, another thread can end up with a stale reference to the stored string that may have already been freed (GitHub Advisory).

Impact

When exploited in a multi-threaded context, this vulnerability can lead to use-after-free conditions, potentially causing program crashes and memory corruption. The issue manifests particularly in scenarios where multiple threads simultaneously access and modify the locale settings (RustSec Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 3.0.1 of rust-i18n-support. The fix implements AtomicStr using arc_swap and triomphe::Arc to ensure thread-safe handling of the locale references. Users are strongly advised to upgrade to version 3.0.1 or later (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22863CRITICAL9.2
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-23519HIGH8.9
  • RustRust
  • yazi
NoYesJan 15, 2026
RUSTSEC-2026-0003HIGH8.9
  • RustRust
  • cmov
NoYesJan 14, 2026
CVE-2026-22864HIGH8.1
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-22782LOW2.9
  • RustRust
  • rustfs
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management