Security mailing lists by PureSourceCode

GHSA-c8v3-jhv9-4ppc

MEDIUM

Use-after-free when setting the locale

Version 3.0.0 introduced an AtomicStr type, that is used to store the current locale. It stores the locale as a raw pointer to an Arc<String>. The locale can be read with AtomicStr::as_str(). AtomicStr::as_str() does not increment the usage counter of the Arc.

If the locale is changed in one thread, another thread can have a stale -- possibly already freed -- reference to the stored string.

Published
19 Jan 2024
Last modified
10 Feb 2024
Weakness
CWE-416
Also known as
RUSTSEC-2024-0007
Sources
OSVJSONOSV RUSTSEC-2024-0007JSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io rust-i18n-support >= 3.0.0, < 3.0.1 3.0.1

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Jan 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jan 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.