Advisory

RUSTSEC-2026-0070

Also known as: GHSA-g433-pq76-6cmf, RUSTSEC-2026-0069, RUSTSEC-2026-0071, RUSTSEC-2026-0072

Summary

Panic When Opening or Sealing on Export-Only Context

Details

Constructing an HPKE Context with the AEAD algorithm set to
HpkeExport resulted in a panic when calling Context::seal, or
Context::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 with
HpkeExport 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.

Severity

Not rated by the source.

Dates

Published
2026-02-11 12:00 UTC
Modified
2026-03-24 08:41 UTC

Affected packages and fixes

hpke-rs

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.6.0 (semver)

Fixed versions

0.6.0

Fix

  • Fixed version 0.6.0
    cargo update -p hpke-rs --precise 0.6.0

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