RUSTSEC-2026-0244 `setlocale` and `TextDomain::init` are unsound as they access environment with no synchronization
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io gettext-rs(crates.io) | >= 0.0.0-0, < 0.8.0 | 0.8.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io gettext-rs(crates.io) | >= 0.0.0-0, < 0.8.0 | 0.8.0 |
References
- crates.io product
- rustsec.org vendor-advisory
- github.com issue-tracking