Skip to content

Commit 409ddd4

Browse files
jschneider-benschdjc
authored andcommitted
Add advisory for hpke-rs
1 parent 9b12362 commit 409ddd4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "hpke-rs"
5+
date = "2026-02-11"
6+
aliases = ["GHSA-g433-pq76-6cmf"]
7+
url = "https://github.com/cryspen/hpke-rs/pull/128"
8+
9+
[affected.functions]
10+
"hpke_rs::Context::export" = [ "<= 0.5.0" ]
11+
12+
[versions]
13+
patched = [">= 0.6.0"]
14+
```
15+
16+
# Incorrect Length Encoding on KDF Export
17+
18+
Passing values `length > 65535` to `Context::export` produces output
19+
that disagrees with the RFC 9180 label encoding. In particular the
20+
length value is cast to `u16` truncating any value exceeding
21+
65535.
22+
23+
## Impact
24+
Applications that use hpke-rs to export very large secrets would
25+
experience interoperability issues with other applications that use a
26+
correct implementation to export very large secrets.
27+
28+
## Mitigation
29+
Starting with version `0.6.0`, an error will be returned when
30+
attempting to call `Context::export` with an output length > 65535.

0 commit comments

Comments
 (0)