This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate yubihsm

Dependencies

(29 total, 22 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 aes^0.70.8.4out of date
 anomaly^0.20.99.0out of date
 bitflags^12.9.1out of date
 block-modes^0.80.9.1out of date
 ccm^0.40.5.0out of date
 chrono ⚠️^0.40.4.41maybe insecure
 cmac^0.60.7.2out of date
 digest^0.90.10.7out of date
 ecdsa^0.120.16.9out of date
 ed25519^12.2.3out of date
 ed25519-dalek ⚠️^12.1.1out of date
 harp^0.1N/Aup to date
 hmac^0.110.12.1out of date
 k256^0.90.13.4out of date
 log^0.40.4.27up to date
 p256^0.90.13.2out of date
 p384^0.80.13.1out of date
 pbkdf2^0.80.12.2out of date
 rand_core^0.60.9.3out of date
 rusb^0.80.9.4out of date
 serde^11.0.219up to date
 serde_json^11.0.140up to date
 sha2^0.90.10.9out of date
 signature^1.2.02.2.0out of date
 subtle^22.6.1up to date
 thiserror^12.0.12out of date
 tiny_http^0.80.12.0out of date
 uuid^0.81.17.0out of date
 zeroize^11.8.1up to date

Dev dependencies

(4 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 criterion^0.30.6.0out of date
 ed25519-dalek ⚠️^12.1.1out of date
 lazy_static^11.5.0up to date
 p256^0.90.13.2out of date

Security Vulnerabilities

chrono: Potential segfault in `localtime_r` invocations

RUSTSEC-2020-0159

Impact

Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.

Workarounds

No workarounds are known.

References

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.