Skip to content

fix(deps): update rust crate rand to v0.8.6 [security] - #696

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/crate-rand-vulnerability
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/crate-rand-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
rand (source) dependencies patch 0.8.5 → 0.8.6

Rand is unsound with a custom logger using rand::rng()

GHSA-cq8v-f236-94qc

More information

Details

It has been reported (by @​lopopolo) that the rand library is unsound (i.e. that safe code using the public API can cause Undefined Behaviour) when all the following conditions are met:

  • The log and thread_rng features are enabled
  • A custom logger is defined
  • The custom logger accesses rand::rng() (previously rand::thread_rng()) and calls any TryRng (previously RngCore) methods on ThreadRng
  • The ThreadRng (attempts to) reseed while called from the custom logger (this happens every 64 kB of generated data)
  • Trace-level logging is enabled or warn-level logging is enabled and the random source (the getrandom crate) is unable to provide a new seed

TryRng (previously RngCore) methods for ThreadRng use unsafe code to cast *mut BlockRng<ReseedingCore> to &mut BlockRng<ReseedingCore>. When all the above conditions are met this results in an aliased mutable reference, violating the Stacked Borrows rules. Miri is able to detect this violation in sample code. Since construction of aliased mutable references is Undefined Behaviour, the behaviour of optimized builds is hard to predict.

Severity

Low

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

rust-random/rand (rand)

v0.8.6

Compare Source

What's Changed

This release back-ports a fix from v0.10. See also #​1763.

Changes
  • Drop the experimental simd_support feature.

New Contributors

Full Changelog: rust-random/rand@0.8.5...0.8.6


Configuration

📅 Schedule: (in timezone Etc/GMT)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: crates/core/Cargo.lock
    Updating crates.io index
error: failed to get `tree-sitter-facade-sg` as a dependency of package `marzano-core v0.2.0 (/tmp/renovate/repos/github/biomejs/gritql/crates/core)`

Caused by:
  failed to load source for dependency `tree-sitter-facade-sg`

Caused by:
  unable to update /tmp/renovate/repos/github/biomejs/gritql/vendor/tree-sitter-facade

Caused by:
  failed to read `/tmp/renovate/repos/github/biomejs/gritql/vendor/tree-sitter-facade/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

File name: Cargo.lock
    Updating crates.io index
error: failed to get `tree-sitter-facade-sg` as a dependency of package `marzano-core v0.2.0 (/tmp/renovate/repos/github/biomejs/gritql/crates/core)`

Caused by:
  failed to load source for dependency `tree-sitter-facade-sg`

Caused by:
  unable to update /tmp/renovate/repos/github/biomejs/gritql/vendor/tree-sitter-facade

Caused by:
  failed to read `/tmp/renovate/repos/github/biomejs/gritql/vendor/tree-sitter-facade/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

File name: Cargo.lock
    Updating crates.io index
error: failed to get `tree-sitter-facade-sg` as a dependency of package `marzano-core v0.2.0 (/tmp/renovate/repos/github/biomejs/gritql/crates/core)`

Caused by:
  failed to load source for dependency `tree-sitter-facade-sg`

Caused by:
  unable to update /tmp/renovate/repos/github/biomejs/gritql/vendor/tree-sitter-facade

Caused by:
  failed to read `/tmp/renovate/repos/github/biomejs/gritql/vendor/tree-sitter-facade/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

@renovate
renovate Bot force-pushed the renovate/crate-rand-vulnerability branch from 13a9f70 to 79efb2e Compare September 2, 2026 23:46

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants