hpke-rs-rust-crypto
Affected
- introduced
0.0.0-0, fixed0.6.0(semver)
Fixed versions
0.6.0
Fix
- Fixed version
0.6.0cargo update -p hpke-rs-rust-crypto --precise 0.6.0
Advisory
Also known as: GHSA-g433-pq76-6cmf, RUSTSEC-2026-0069, RUSTSEC-2026-0070, RUSTSEC-2026-0071
Missing Check for All-Zero X25519 Shared Secret
Computing an X25519 shared secret withx25519_dalek::StaticSecret::diffie_hellman does not include the
check that the key exchange was contributory, i.e. does not ensure on
its own that the resulting shared secret is non-zero.
Impact
RFC 9180 mandates that implementations of HPKE must check for all zero
Diffie-Hellman shared secrets and abort if so.
Applications using hpke-rs with the RustCryto provider would not
perform this check allowing for non-contributive Diffie-Hellman shared
secrets. Applications using hpke-rs with the libcrux provider are not
affected.
Mitigation
Starting with version 0.6.0, an error will be returned when
the computed Diffie-Hellman shared secret is all-zero.
Not rated by the source.
0.0.0-0, fixed 0.6.0 (semver)0.6.0
0.6.0cargo update -p hpke-rs-rust-crypto --precise 0.6.0Fix 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
Source: RustSec Advisory Database · CC0-1.0