Security mailing lists by PureSourceCode

RUSTSEC-2026-0202

not scored yet

`let_cxx_string!` uses uninitialized value due to exception safety violations

In affected versions of this crate, let_cxx_string! is not exception safe. After creating the StackString, if match $value panics, the content of StackString is not yet initialized, while the drop implementation of StackString unconditionally deinitializes the content, leading to use of uninitialized value.

The soundness issue was fixed in version 1.0.195 by moving drop logics to separate drop guard after initializing the StackString.

Published
5 Jul 2026
Last modified
5 Jul 2026
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io cxx >= 0.0.0-0, < 1.0.195 1.0.195

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Jul 2026)
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.