Advisory

RUSTSEC-2024-0430

Also known as: GHSA-gmx7-gr5q-85w5

Summary

Use of 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.

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.

Severity

Not rated by the source.

Dates

Published
2024-12-28 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

magic-crypt

crates.io · All systems

Affected

  • introduced 0.0.0-0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences