Advisory

RUSTSEC-2026-0244

Also known as: None

Summary

setlocale and TextDomain::init are unsound as they access environment with no synchronization

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-08-06 12:00 UTC
Modified
2026-08-09 15:00 UTC

Affected packages and fixes

gettext-rs

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.8.0 (semver)

Fixed versions

0.8.0

Fix

  • Fixed version 0.8.0
    cargo update -p gettext-rs --precise 0.8.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences