As soon as the fix lands in all Rust sub-releases, users can safely upgrade to the latest version of regex . We suggest to avoid using user-controlled, untrusted regexes until the issue is resolved. The latest version of the regex crate can be found on Cargo.lock with the following commit message: As soon as the fix lands in all Rust sub-releases, users can safely upgrade to the latest version of. We suggest to avoid using user-controlled, untrusted regexes until the issue is resolved. The latest version of thecrate can be found on Cargo.lock with the following commit message: This issue was discovered by Remi Coulom. Thank you Remi for reporting it! The fix is currently being considered for Rust 1.30, but we'll update this announcement when the 1.30-release train leaves the station. We recommend all users to update to the latest version as soon.

What to do if you're using a user-controlled, untrusted regex

In order to reduce the risk of unexpected behavior, we recommend all users to update to the latest version of the regex crate.
As soon as the fix lands in all Rust sub-releases, users can safely upgrade to the latest version of the regex crate.
As soon as the fix lands in all Rust sub-releases, users can safely upgrade to the latest version of.

Upgrade to latest version using nightly build

If you're on a nightly build, use the following command to compile your own version of regex :
rustup component add rust-lang-ci/rust-std-libs/rust-regex rustup component add rust-lang/nightly

What to do if you are using a user-controlled, untrusted regex

If you are using a user-controlled, untrusted regex and upgraded to the latest version of regex , you can safely use it again.

Not yet published

This issue was discovered by Remi Coulom. Thank you Remi for reporting it! The fix is currently being considered for Rust 1.30, but we'll update this announcement when the 1.30-release train leaves the station. We recommend all users to update to the latest version as soon.

Timeline

Published on: 03/08/2022 19:15:00 UTC
Last modified on: 08/10/2022 20:15:00 UTC

References