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: 10 months ago
Updated: 10 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: 339,665 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, 3.1.0, 3.1.1, 3.1.2