-
Notifications
You must be signed in to change notification settings - Fork 592
[GHSA-cq8v-f236-94qc] Rand is unsound with a custom logger using rand::rng() #7481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { | ||
| "schema_version": "1.4.0", | ||
| "id": "GHSA-cq8v-f236-94qc", | ||
| "modified": "2026-04-14T01:03:36Z", | ||
| "modified": "2026-04-14T01:03:37Z", | ||
| "published": "2026-04-14T01:03:36Z", | ||
| "aliases": [], | ||
| "summary": "Rand is unsound with a custom logger using rand::rng()", | ||
|
|
@@ -18,7 +18,7 @@ | |
| "type": "ECOSYSTEM", | ||
| "events": [ | ||
| { | ||
| "introduced": "0.7.0" | ||
| "introduced": "0.9.0" | ||
| }, | ||
| { | ||
| "fixed": "0.9.3" | ||
|
|
@@ -48,6 +48,25 @@ | |
| "versions": [ | ||
| "0.10.0" | ||
| ] | ||
|
Comment on lines
48
to
50
|
||
| }, | ||
| { | ||
| "package": { | ||
| "ecosystem": "crates.io", | ||
| "name": "rand" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "type": "ECOSYSTEM", | ||
| "events": [ | ||
| { | ||
| "introduced": "0.7.0" | ||
| }, | ||
| { | ||
| "fixed": "0.8.6" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
|
Comment on lines
+52
to
+69
|
||
| } | ||
| ], | ||
| "references": [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The advisory mixes an ECOSYSTEM range that is fixed at
0.9.3with an explicit vulnerableversionsentry for0.10.0. If0.10.0is intended to be vulnerable, it’s clearer (and typically easier for tooling) to represent it as an additionalranges[].eventssegment (e.g., anintroduced: "0.10.0"event, optionally with afixedif known) rather than (or in addition to) a standaloneversionslist.