{"id":"RUSTSEC-2026-0069","summary":"Incorrect Length Encoding on KDF Export","details":"Passing values `length \u003e 65535` to `Context::export` produces output\nthat disagrees with the RFC 9180 label encoding. In particular the\nlength value is cast to `u16` truncating any value exceeding\n65535.\n\n## Impact\nApplications that use hpke-rs to export very large secrets would\nexperience interoperability issues with other applications that use a\ncorrect implementation to export very large secrets.\n\n## Mitigation\nStarting with version `0.6.0`, an error will be returned when\nattempting to call `Context::export` with an output length \u003e 65535.","aliases":["GHSA-g433-pq76-6cmf","RUSTSEC-2026-0070","RUSTSEC-2026-0071","RUSTSEC-2026-0072"],"modified":"2026-03-24T08:41:23.142103Z","published":"2026-02-11T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/hpke-rs"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0069.html"},{"type":"WEB","url":"https://github.com/cryspen/hpke-rs/pull/128"}],"affected":[{"package":{"name":"hpke-rs","ecosystem":"crates.io","purl":"pkg:cargo/hpke-rs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.6.0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":["hpke_rs::Context::export"],"os":[]}},"database_specific":{"categories":[],"cvss":null,"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0069.json"}}],"schema_version":"1.7.5"}