Advisory

RUSTSEC-2026-0069

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

Summary

Incorrect Length Encoding on KDF Export

Details

Passing values length > 65535 to Context::export produces output
that disagrees with the RFC 9180 label encoding. In particular the
length value is cast to u16 truncating any value exceeding
65535.

Impact
Applications that use hpke-rs to export very large secrets would
experience interoperability issues with other applications that use a
correct implementation to export very large secrets.

Mitigation
Starting with version 0.6.0, an error will be returned when
attempting to call Context::export with an output length > 65535.

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