From 4e475c508ee41c697b71a10bd6e573bb0311ede8 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 9 Dec 2021 00:29:33 +0000 Subject: [PATCH] Update OSV exported data --- crates/RUSTSEC-2021-0128.json | 73 +++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 crates/RUSTSEC-2021-0128.json diff --git a/crates/RUSTSEC-2021-0128.json b/crates/RUSTSEC-2021-0128.json new file mode 100644 index 000000000..7524a4c22 --- /dev/null +++ b/crates/RUSTSEC-2021-0128.json @@ -0,0 +1,73 @@ +{ + "id": "RUSTSEC-2021-0128", + "modified": "2021-12-09T00:29:19Z", + "published": "2021-12-07T12:00:00Z", + "aliases": [], + "related": [], + "summary": "Incorrect Lifetime Bounds on Closures in `rusqlite`", + "details": "The lifetime bound on several closure-accepting `rusqlite` functions (specifically, functions which register a callback to be later invoked by SQLite) was too relaxed. If a closure referencing borrowed values on the stack is was passed to one of these functions, it could allow Rust code to access objects on the stack after they have been dropped.\n\nThe impacted functions are:\n\n- Under `cfg(feature = \"functions\")`: `Connection::create_scalar_function`, `Connection::create_aggregate_function` and `Connection::create_window_function`.\n- Under `cfg(feature = \"hooks\")`: `Connection::commit_hook`, `Connection::rollback_hook` and `Connection::update_hook`.\n- Under `cfg(feature = \"collation\")`: `Connection::create_collation`.\n\nThe issue exists in all `0.25.*` versions prior to `0.25.4`, and all `0.26.*` versions prior to 0.26.2 (specifically: `0.25.0`, `0.25.1`, `0.25.2`, `0.25.3`, `0.26.0`, and `0.26.1`).\n\nThe fix is available in versions `0.26.2` and newer, and also has been back-ported to `0.25.4`. As it does not exist in `0.24.*`, all affected versions should have an upgrade path to a semver-compatible release.", + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "rusqlite", + "purl": "pkg:cargo/rusqlite" + }, + "ecosystem_specific": { + "affects": { + "arch": [], + "os": [], + "functions": [ + "rusqlite::Connection::commit_hook", + "rusqlite::Connection::create_aggregate_function", + "rusqlite::Connection::create_collation", + "rusqlite::Connection::create_scalar_function", + "rusqlite::Connection::create_window_function", + "rusqlite::Connection::rollback_hook", + "rusqlite::Connection::update_hook" + ] + } + }, + "database_specific": { + "categories": [ + "memory-corruption" + ], + "cvss": null, + "informational": null + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0.25.0" + }, + { + "fixed": "0.25.4" + }, + { + "introduced": "0.26.0-0" + }, + { + "fixed": "0.26.2" + } + ] + } + ] + } + ], + "references": [ + { + "type": "PACKAGE", + "url": "https://crates.io/crates/rusqlite" + }, + { + "type": "ADVISORY", + "url": "https://rustsec.org/advisories/RUSTSEC-2021-0128.html" + }, + { + "type": "REPORT", + "url": "https://github.com/rusqlite/rusqlite/issues/1048" + } + ] +} \ No newline at end of file