# RUSTSEC-2026-0244: `setlocale` and `TextDomain::init` are unsound as they access environment with no synchronization

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-06T12:00:00.000Z
- Modified: 2026-08-09T15:00:04.155Z

## 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.

(As written by RustSec Advisory Database.)

## Affected

- gettext-rs (crates.io): from 0.0.0-0 before 0.8.0

## References

- <https://crates.io/crates/gettext-rs> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0244.html> (advisory)
- <https://github.com/gettext-rs/gettext-rs/issues/64> (report)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0244](https://rustsec.org/advisories/RUSTSEC-2026-0244.html), CC0-1.0, modified 2026-08-09

---

Page: https://cve.day/RUSTSEC-2026-0244 · Whole record: https://cve.day/RUSTSEC-2026-0244.json · Rebuilt by cve.day 2026-11-25T22:56:43.395Z
