rustsec-2026-0069
Vulnerability from osv_rustsec
Published
2026-02-11 12:00
Modified
2026-03-24 08:16
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.
References
| URL | Type | |
|---|---|---|
{
"affected": [
{
"database_specific": {
"categories": [],
"cvss": null,
"informational": null
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [],
"functions": [
"hpke_rs::Context::export"
],
"os": []
}
},
"package": {
"ecosystem": "crates.io",
"name": "hpke-rs",
"purl": "pkg:cargo/hpke-rs"
},
"ranges": [
{
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.6.0"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [
"GHSA-g433-pq76-6cmf"
],
"database_specific": {
"license": "CC0-1.0"
},
"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.",
"id": "RUSTSEC-2026-0069",
"modified": "2026-03-24T08:16:07Z",
"published": "2026-02-11T12:00:00Z",
"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"
}
],
"related": [],
"severity": [],
"summary": "Incorrect Length Encoding on KDF Export"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…