From afa06dab959fd92619bc2fef982aa6f5bcae7e99 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2024 16:54:58 +0000 Subject: [PATCH] Publish Advisories GHSA-gmx7-gr5q-85w5 GHSA-gv7f-5qqh-vxfx --- .../GHSA-gmx7-gr5q-85w5.json | 54 ++++++++++++++++++ .../GHSA-gv7f-5qqh-vxfx.json | 56 +++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 advisories/github-reviewed/2024/12/GHSA-gmx7-gr5q-85w5/GHSA-gmx7-gr5q-85w5.json create mode 100644 advisories/github-reviewed/2024/12/GHSA-gv7f-5qqh-vxfx/GHSA-gv7f-5qqh-vxfx.json diff --git a/advisories/github-reviewed/2024/12/GHSA-gmx7-gr5q-85w5/GHSA-gmx7-gr5q-85w5.json b/advisories/github-reviewed/2024/12/GHSA-gmx7-gr5q-85w5/GHSA-gmx7-gr5q-85w5.json new file mode 100644 index 00000000000..21cd666c1ee --- /dev/null +++ b/advisories/github-reviewed/2024/12/GHSA-gmx7-gr5q-85w5/GHSA-gmx7-gr5q-85w5.json @@ -0,0 +1,54 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-gmx7-gr5q-85w5", + "modified": "2024-12-30T16:53:24Z", + "published": "2024-12-30T16:53:24Z", + "aliases": [], + "summary": "magic-crypt uses insecure cryptographic algorithms", + "details": "This crate uses a number of cryptographic algorithms that are no longer considered secure and it uses them in ways that do not guarantee the integrity of the encrypted data.\n\n`MagicCrypt64` uses the insecure DES block cipher in CBC mode without authentication. This allows for practical brute force and padding oracle attacks and does not protect the integrity of the encrypted data. Key and IV are generated from user input using CRC64, which is not at all a key derivation function.\n\n`MagicCrypt64`, `MagicCrypt128`, `MagicCrypt192`, and `MagicCrypt256` are all vulnerable to padding-oracle attacks. None of them protect the integrity of the ciphertext. Furthermore, none use password-based key derivation functions, even though the key is intended to be generated from a password.\n\nEach of the implementations are unsound in that they use uninitialized memory without `MaybeUninit` or equivalent structures.\n\nFor more information, visit the [issue](https://github.com/magiclen/rust-magiccrypt/issues/17).\n", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "magic-crypt" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "last_affected": "4.0.1" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/magiclen/rust-magiccrypt/issues/17" + }, + { + "type": "PACKAGE", + "url": "https://github.com/magiclen/rust-magiccrypt" + }, + { + "type": "WEB", + "url": "https://rustsec.org/advisories/RUSTSEC-2024-0430.html" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-326" + ], + "severity": "LOW", + "github_reviewed": true, + "github_reviewed_at": "2024-12-30T16:53:24Z", + "nvd_published_at": null + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2024/12/GHSA-gv7f-5qqh-vxfx/GHSA-gv7f-5qqh-vxfx.json b/advisories/github-reviewed/2024/12/GHSA-gv7f-5qqh-vxfx/GHSA-gv7f-5qqh-vxfx.json new file mode 100644 index 00000000000..66abc69f9f1 --- /dev/null +++ b/advisories/github-reviewed/2024/12/GHSA-gv7f-5qqh-vxfx/GHSA-gv7f-5qqh-vxfx.json @@ -0,0 +1,56 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-gv7f-5qqh-vxfx", + "modified": "2024-12-30T16:52:46Z", + "published": "2024-12-30T16:52:46Z", + "aliases": [], + "summary": "xous has unsound usages of `core::slice::from_raw_parts` ", + "details": "We consider `as_slice` and `as_slice_mut` unsound because: the pointer with any bit patterns could be cast to the slice of arbitrary types. The pointer could be created by unsafe new and deprecated `from_parts`. We consider that `from_parts` should be removed in latest version because it will help trigger unsoundness in `as_slice`. With new declared as unsafe, `as_slice` should also declared as unsafe. \n\nThis was patched in by marking two functions as `unsafe`.\n", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "xous" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.9.51" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/betrusted-io/xous-core/issues/410" + }, + { + "type": "WEB", + "url": "https://github.com/betrusted-io/xous-core/pull/411" + }, + { + "type": "PACKAGE", + "url": "https://github.com/betrusted-io/xous-core" + }, + { + "type": "WEB", + "url": "https://rustsec.org/advisories/RUSTSEC-2024-0431.html" + } + ], + "database_specific": { + "cwe_ids": [], + "severity": "LOW", + "github_reviewed": true, + "github_reviewed_at": "2024-12-30T16:52:46Z", + "nvd_published_at": null + } +} \ No newline at end of file