hpke-rs
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 --precise 0.6.0
Advisory
Also known as: GHSA-g433-pq76-6cmf, RUSTSEC-2026-0069, RUSTSEC-2026-0071, RUSTSEC-2026-0072
Panic When Opening or Sealing on Export-Only Context
Constructing an HPKE Context with the AEAD algorithm set toHpkeExport resulted in a panic when calling Context::seal, orContext::open. This was due to an underflowing integer subtraction
when calculating the length of a vector allocation for the AEAD nonce,
which would panic on its own in debug mode and cause out-of-memory
abort on the allocation in release mode.
Impact
Applications that could be made to use an HPKE context configured withHpkeExport as AEAD algorithm to open or seal a ciphertext would
crash. Other applications are unaffected.
Mitigation
Starting with version 0.6.0, an error will be returned when
attempting to call Context::seal or Context::open on an HPKE
context with HpkeExport as AEADAlgorithm.
Not rated by the source.
0.0.0-0, fixed 0.6.0 (semver)0.6.0
0.6.0cargo update -p hpke-rs --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