diff --git a/crates/RUSTSEC-2026-0131.json b/crates/RUSTSEC-2026-0131.json new file mode 100644 index 000000000..3c111ce6f --- /dev/null +++ b/crates/RUSTSEC-2026-0131.json @@ -0,0 +1,62 @@ +{ + "id": "RUSTSEC-2026-0131", + "modified": "2026-05-13T12:38:12Z", + "published": "2026-05-02T12:00:00Z", + "aliases": [], + "related": [], + "summary": "Double-free in `Chomp::inner()`", + "details": "`Chomp::inner()` uses `std::ptr::read_unaligned` to move out the value from a\nraw pointer. If the original value is an owned type (e.g. `Box`), calling\n`inner()` moves out the ownership, but the original variable will still be\ndropped at the end of its scope. This causes the same heap memory to be freed\ntwice, resulting in a double-free and undefined behavior.\n\nThis can be triggered through safe public APIs — `Chomp::new()` and\n`Chomp::inner()` — with no `unsafe` required from the caller.", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "bitchomp", + "purl": "pkg:cargo/bitchomp" + }, + "ecosystem_specific": { + "affects": { + "arch": [], + "os": [], + "functions": [] + }, + "affected_functions": null + }, + "database_specific": { + "categories": [ + "memory-corruption" + ], + "cvss": null, + "informational": "unsound" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0.0.0-0" + } + ] + } + ], + "versions": [] + } + ], + "references": [ + { + "type": "PACKAGE", + "url": "https://crates.io/crates/bitchomp" + }, + { + "type": "ADVISORY", + "url": "https://rustsec.org/advisories/RUSTSEC-2026-0131.html" + }, + { + "type": "REPORT", + "url": "https://github.com/KingPEPSALT/bitchomp/issues/5" + } + ], + "database_specific": { + "license": "CC0-1.0" + } +} \ No newline at end of file diff --git a/crates/RUSTSEC-2026-0132.json b/crates/RUSTSEC-2026-0132.json new file mode 100644 index 000000000..2e2cc1f4a --- /dev/null +++ b/crates/RUSTSEC-2026-0132.json @@ -0,0 +1,62 @@ +{ + "id": "RUSTSEC-2026-0132", + "modified": "2026-05-13T12:38:12Z", + "published": "2026-05-02T12:00:00Z", + "aliases": [], + "related": [], + "summary": "Potential out-of-bounds write via public `Context` fields", + "details": "The `Context` struct has all fields public (`pub d_len`, `pub digest`, etc.).\nExternal code can directly modify `d_len` to a value exceeding the `digest`\nvector length. When `reset()` is subsequently called,\n`self.digest[self.d_len as usize] = 0` indexes out of bounds, causing an\nout-of-bounds write.\n\nThis can be triggered through safe code — modifying public `Context` fields\nand then calling `reset()` — with no `unsafe` required.", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "ssdeep", + "purl": "pkg:cargo/ssdeep" + }, + "ecosystem_specific": { + "affects": { + "arch": [], + "os": [], + "functions": [] + }, + "affected_functions": null + }, + "database_specific": { + "categories": [ + "memory-corruption" + ], + "cvss": null, + "informational": "unsound" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0.0.0-0" + } + ] + } + ], + "versions": [] + } + ], + "references": [ + { + "type": "PACKAGE", + "url": "https://crates.io/crates/ssdeep" + }, + { + "type": "ADVISORY", + "url": "https://rustsec.org/advisories/RUSTSEC-2026-0132.html" + }, + { + "type": "REPORT", + "url": "https://github.com/rustysec/fuzzyhash-rs/issues/14" + } + ], + "database_specific": { + "license": "CC0-1.0" + } +} \ No newline at end of file diff --git a/crates/RUSTSEC-2026-0133.json b/crates/RUSTSEC-2026-0133.json new file mode 100644 index 000000000..ce447bfd9 --- /dev/null +++ b/crates/RUSTSEC-2026-0133.json @@ -0,0 +1,62 @@ +{ + "id": "RUSTSEC-2026-0133", + "modified": "2026-05-13T12:38:12Z", + "published": "2026-05-02T12:00:00Z", + "aliases": [], + "related": [], + "summary": "Invalid pointer arithmetic in `iter()` and `iter_mut()`", + "details": "The `iter()` and `iter_mut()` APIs compute\n`current = (&children[0] as *const *const RawAutoChild).sub(1)`, which\nperforms pointer subtraction going before the start of the allocation. This\nis undefined behavior per Rust's pointer arithmetic rules.\n\nThis can be triggered through safe public APIs — `iter()` and `iter_mut()`\n— with no `unsafe` required from the caller.", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "auto_vec", + "purl": "pkg:cargo/auto_vec" + }, + "ecosystem_specific": { + "affects": { + "arch": [], + "os": [], + "functions": [] + }, + "affected_functions": null + }, + "database_specific": { + "categories": [ + "memory-corruption" + ], + "cvss": null, + "informational": "unsound" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0.0.0-0" + } + ] + } + ], + "versions": [] + } + ], + "references": [ + { + "type": "PACKAGE", + "url": "https://crates.io/crates/auto_vec" + }, + { + "type": "ADVISORY", + "url": "https://rustsec.org/advisories/RUSTSEC-2026-0133.html" + }, + { + "type": "REPORT", + "url": "https://github.com/lluvz/AutoVec/issues/1" + } + ], + "database_specific": { + "license": "CC0-1.0" + } +} \ No newline at end of file