Skip to content

Commit 33bfb59

Browse files
JamesC1305JackThomson2
authored andcommitted
fix(audit): ignore RUSTSEC-2026-0097
RUSTSEC-2026-0097 is an informational advisory about potential undefined behaviour within the `rand` crate. `rand` is a transitive dependency, pulled in by `uuid` and `proptest`. Our use of these crates cannot trigger the pre-conditions for this undefined behaviour. In particular, it relies on both the `log` and `thread_rng` features of `rand` being enabled: - uuid (1.23.0): does not enable `fast-rng` or `rng-rand` features, so it uses `getrandom` directly and never calls into rand. - proptest: uses rand 0.9 with `default-features = false` and does not enable the `thread_rng` feature, so the affected functions are not compiled in. This is a temporary patch and will be reverted when `uuid` and `proptest` update `rand` to `0.10.1` and `0.9.3` respectively. Signed-off-by: James Curtis <jxcurtis@amazon.co.uk>
1 parent 054b647 commit 33bfb59

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

.cargo/audit.toml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
[advisories]
2-
# The `paste` dependency is transitively included via `gdbstub`.
3-
# While the crate is archived/unmaintained, the author considers it feature-complete
4-
# and functionally stable. gdbstub will be update once they migrate
5-
# to an alternative solution.
6-
# See https://github.com/daniel5151/gdbstub/issues/168
7-
ignore = ["RUSTSEC-2024-0436"]
2+
ignore = [
3+
# The `paste` dependency is transitively included via `gdbstub`.
4+
# While the crate is archived/unmaintained, the author considers it feature-complete
5+
# and functionally stable. gdbstub will be update once they migrate
6+
# to an alternative solution.
7+
# See https://github.com/daniel5151/gdbstub/issues/168
8+
"RUSTSEC-2024-0436",
9+
10+
# `rand` unsoundness when a custom logger re-enters `rand::rng()`/`thread_rng()`
11+
# during ThreadRng reseeding. Firecracker is not affected:
12+
# - uuid (1.23.0): does not enable `fast-rng` or `rng-rand` features, so it uses
13+
# `getrandom` directly and never calls into rand.
14+
# - proptest: uses rand 0.9 with `default-features = false` and does not enable
15+
# the `thread_rng` feature, so the affected functions are not compiled in.
16+
# See https://rustsec.org/advisories/RUSTSEC-2026-0097.html
17+
"RUSTSEC-2026-0097",
18+
]

0 commit comments

Comments
 (0)