RUSTSEC-2026-0244
Not scored
`setlocale` and `TextDomain::init` are unsound as they access environment with no synchronization
- Severity
- Not scored
- Published
- Last changed
Description
setlocale and TextDomain::init are unsound and may allow safe code to exhibit undefined behavior when called in a multi-threaded program.
The flaw is fixed in 0.8.0 by marking these functions unsafe and documenting the conditions under which they can be called safely.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gettext-rs (crates.io) | from 0.0.0-0 before 0.8.0 | RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| RustSec Advisory Database | RUSTSEC-2026-0244 changed 2026-08-09 | CC0-1.0 |