Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1jOHYzLWpodjktNHBwY84AA4ow

Use-after-free when setting the locale

Version 3.0.0 introduced an AtomicStr type, that is used to store the current locale. It stores the locale as a raw pointer to an Arc<String>. The locale can be read with AtomicStr::as_str(). AtomicStr::as_str() does not increment the usage counter of the Arc.

If the locale is changed in one thread, another thread can have a stale -- possibly already freed -- reference to the stored string.

Permalink: https://github.com/advisories/GHSA-c8v3-jhv9-4ppc
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jOHYzLWpodjktNHBwY84AA4ow
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 3 months ago
Updated: 3 months ago


Identifiers: GHSA-c8v3-jhv9-4ppc
References: Repository: https://github.com/longbridgeapp/rust-i18n
Blast Radius: 0.0

Affected Packages

cargo:rust-i18n-support
Dependent packages: 4
Dependent repositories: 7
Downloads: 209,760 total
Affected Version Ranges: >= 3.0.0, < 3.0.1
Fixed in: 3.0.1
All affected versions: 3.0.0
All unaffected versions: 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.3.0, 0.4.0, 1.0.0, 1.1.0, 2.0.0, 2.1.0, 2.3.0, 2.4.0, 3.0.1