{"id":"RUSTSEC-2026-0244","aliases":["RUSTSEC-2026-0244"],"related":[],"kind":"vulnerability","state":"published","title":"`setlocale` and `TextDomain::init` are unsound as they access environment with no synchronization","summary":"`setlocale` and `TextDomain::init` are unsound and may allow safe code to exhibit undefined behavior when called in a multi-threaded program.\n\nThe flaw is fixed in 0.8.0 by marking these functions `unsafe` and documenting the conditions under which they can be called safely.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"`setlocale` and `TextDomain::init` are unsound and may allow safe code to exhibit undefined behavior when called in a multi-threaded program.\n\nThe flaw is fixed in 0.8.0 by marking these functions `unsafe` and documenting the conditions under which they can be called safely.","format":"markdown","source":"rustsec"}],"published":"2026-08-06T12:00:00.000Z","modified":"2026-08-09T15:00:04.155Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.8.0"}],"ecosystem":"crates.io","package":"gettext-rs","purl":"pkg:cargo/gettext-rs","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/gettext-rs","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0244.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/gettext-rs/gettext-rs/issues/64","tags":["report"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0244","url":"https://rustsec.org/advisories/RUSTSEC-2026-0244.html","licence":"CC0-1.0","modified":"2026-08-09T15:00:04.155Z"}],"updatedAt":"2026-11-25T22:56:43.395Z"}