RUSTSEC-2026-0286

Source
https://rustsec.org/advisories/RUSTSEC-2026-0286
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0286.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0286
Aliases
  • GHSA-r6vc-97x9-63vv
Published
2026-09-16T12:00:00Z
Modified
2026-09-17T07:45:03Z
Summary
Out-of-bounds read when decoding CKA_ALLOWED_MECHANISMS
Details

cryptoki treated the CKA_ALLOWED_MECHANISMS ulValueLen byte count as a CK_MECHANISM_TYPE element count. A valid nonempty attribute returned through the safe Session::get_attributes API could cause construction of an out-of-bounds slice and undefined behavior.

Possible consequences include a process crash or denial of service and potential disclosure of adjacent heap words. Upgrade to the fixed patch release for the cryptoki 0.10, 0.11, or 0.12 line.

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

Affected packages

crates.io / cryptoki

Package

Name
cryptoki
View open source insights on deps.dev
Purl
pkg:cargo/cryptoki

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.10.1
Introduced
0.11.0
Fixed
0.11.1
Introduced
0.12.0
Fixed
0.12.1

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [],
        "os": []
    }
}

Database specific

categories
[
    "memory-exposure"
]
cvss
null
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0286.json"