RUSTSEC-2026-0070

Source
https://rustsec.org/advisories/RUSTSEC-2026-0070
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0070.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0070
Aliases
Published
2026-02-11T12:00:00Z
Modified
2026-03-24T08:41:23.142103Z
Severity
  • 8.2 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / hpke-rs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.6.0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [
            "hpke_rs::Context::open",
            "hpke_rs::Context::seal"
        ],
        "os": []
    }
}

Database specific

categories
[]
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0070.json"
informational
null
cvss
"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"