This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate msecret

Dependencies

(32 total, 3 outdated, 1 insecure, 2 possibly insecure)

CrateRequiredLatestStatus
 anyhow^11.0.83up to date
 base64^0.210.22.1out of date
 bs58^0.50.5.1up to date
 clap^4.34.5.4up to date
 crc^33.2.1up to date
 digest^0.100.10.7up to date
 ed25519-dalek ⚠️^2.0.0-rc.32.1.1maybe insecure
 elliptic-curve^0.130.13.8up to date
 gf256^0.30.3.0up to date
 hex^0.40.4.3up to date
 hex-literal^0.40.4.1up to date
 hkdf^0.120.12.4up to date
 hmac^0.120.12.1up to date
 k256^0.130.13.3up to date
 mnemonic^11.1.1up to date
 num-bigint-dig>=0.8.40.8.4up to date
 num-integer^0.10.1.46up to date
 num-traits^0.20.2.19up to date
 openssl ⚠️^0.100.10.64maybe insecure
 p256^0.130.13.2up to date
 rand^0.80.8.5up to date
 ripemd^0.10.1.3up to date
 rpassword^77.3.1up to date
 rsa ⚠️^0.90.9.6insecure
 rust-argon2^12.1.0out of date
 rustyline^1114.0.0out of date
 sha2^0.100.10.8up to date
 shellwords^1.0.01.1.0up to date
 signature>=2.02.2.0up to date
 typenum^11.17.0up to date
 x25519-dalek^2.0.0-rc.32.0.1up to date
 zeroize^1.61.7.0up to date

Security Vulnerabilities

ed25519-dalek: Double Public Key Signing Function Oracle Attack on `ed25519-dalek`

RUSTSEC-2022-0093

Versions of ed25519-dalek prior to v2.0 model private and public keys as separate types which can be assembled into a Keypair, and also provide APIs for serializing and deserializing 64-byte private/public keypairs.

Such APIs and serializations are inherently unsafe as the public key is one of the inputs used in the deterministic computation of the S part of the signature, but not in the R value. An adversary could somehow use the signing function as an oracle that allows arbitrary public keys as input can obtain two signatures for the same message sharing the same R and only differ on the S part.

Unfortunately, when this happens, one can easily extract the private key.

Revised public APIs in v2.0 of ed25519-dalek do NOT allow a decoupled private/public keypair as signing input, except as part of specially labeled "hazmat" APIs which are clearly labeled as being dangerous if misused.

openssl: `openssl` `X509VerifyParamRef::set_host` buffer over-read

RUSTSEC-2023-0044

When this function was passed an empty string, openssl would attempt to call strlen on it, reading arbitrary memory until it reached a NUL byte.

rsa: Marvin Attack: potential key recovery through timing sidechannels

RUSTSEC-2023-0071

Impact

Due to a non-constant-time implementation, information about the private key is leaked through timing information which is observable over the network. An attacker may be able to use that information to recover the key.

Patches

No patch is yet available, however work is underway to migrate to a fully constant-time implementation.

Workarounds

The only currently available workaround is to avoid using the rsa crate in settings where attackers are able to observe timing information, e.g. local use on a non-compromised computer is fine.

References

This vulnerability was discovered as part of the "Marvin Attack", which revealed several implementations of RSA including OpenSSL had not properly mitigated timing sidechannel attacks.