Skip to content

fix(security): bump rand 0.9.2 → 0.9.3 in opsm-tui (GHSA-cq8v-f236-94qc) - #17

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/security-rand-0.9.3
May 14, 2026
Merged

fix(security): bump rand 0.9.2 → 0.9.3 in opsm-tui (GHSA-cq8v-f236-94qc)#17
hyperpolymath merged 1 commit into
mainfrom
fix/security-rand-0.9.3

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Addresses Dependabot alert #50 — `rand` unsoundness with custom logger (GHSA-cq8v-f236-94qc, severity: low).

Why low severity is still worth fixing now

The unsoundness only triggers when all of these align: `log`+`thread_rng` features, a custom `Logger` impl, calls to `rand::rng()` from inside the logger, a reseed-while-logging, and trace/warn-level logs with getrandom failing on reseed. opsm-tui doesn't ship a custom logger today, so we're not believed to be exposed in practice — but the lockfile is the build's source of truth, and 0.9.3 is a drop-in patch.

Scope

  • Only `opsm-ui/tui/Cargo.lock` (rand 0.9.2 → 0.9.3).
  • All other workspace crates already had rand ≥ 0.9.4 in their lockfiles.
  • No `Cargo.toml` changes needed.

🤖 Generated with Claude Code

Addresses Dependabot alert #50.

`rand` versions ≥ 0.9.0, < 0.9.3 are unsound when a custom logger calls
`rand::rng()` and triggers a reseed mid-log; the unsafe cast to a mutable
reference becomes aliased, violating Stacked Borrows. Severity: low —
the unsoundness only manifests under a narrow combination of features
(`log` + `thread_rng`, custom `Logger` impl, trace/warn-level logging
with getrandom failing on reseed). opsm-tui doesn't ship a custom logger
today, but the lockfile is the source of truth for what we actually
build, and the patched 0.9.3 is a drop-in.

Other workspace crates already had rand ≥ 0.9.4 in their lockfiles; this
PR only touches `opsm-ui/tui/Cargo.lock`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hyperpolymath
hyperpolymath enabled auto-merge (squash) May 14, 2026 09:49
@hyperpolymath
hyperpolymath merged commit 179bd3d into main May 14, 2026
16 of 23 checks passed
@hyperpolymath
hyperpolymath deleted the fix/security-rand-0.9.3 branch May 14, 2026 20:55
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.

1 participant