RUSTSEC-2026-0244

Source
https://rustsec.org/advisories/RUSTSEC-2026-0244
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0244.json
JSON Data
https://api.test.osv.dev/v1/vulns/RUSTSEC-2026-0244
Published
2026-08-06T12:00:00Z
Modified
2026-08-09T15:00:02.879930956Z
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / gettext-rs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.8.0

Ecosystem specific

{
    "affects": {
        "os": [],
        "functions": [
            "gettext_rs::TextDomain::init",
            "gettext_rs::setlocale"
        ],
        "arch": []
    },
    "affected_functions": null
}

Database specific

categories
[
    "memory-corruption",
    "thread-safety"
]
informational
"unsound"
cvss
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0244.json"