Security mailing lists by PureSourceCode

GHSA-gmx7-gr5q-85w5

LOW

magic-crypt uses insecure cryptographic algorithms

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.

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.

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.

Each of the implementations are unsound in that they use uninitialized memory without MaybeUninit or equivalent structures.

For more information, visit the issue.

Published
28 Dec 2024
Last modified
28 Oct 2025
Weakness
CWE-326
Also known as
RUSTSEC-2024-0430
Sources
OSVJSONOSV RUSTSEC-2024-0430JSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io magic-crypt <= 4.0.1
OSV crates.io magic-crypt >= 0.0.0-0

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Dec 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Dec 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.