{"id":"GHSA-gmx7-gr5q-85w5","aliases":["RUSTSEC-2024-0430"],"url":"https://o3.security/vulnerability/GHSA-gmx7-gr5q-85w5","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","published":"2024-12-30T16:53:24Z","modified":"2025-10-28T06:29:24.777142Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"magic-crypt","fixedVersion":null}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2025-10-28T06:29:24.777142Z"}}