GHSA-r6vc-97x9-63vv
Not scored
Out-of-bounds read when decoding CKA_ALLOWED_MECHANISMS
- Severity
- Not scored
- Published
- Last changed
- Also known as
- RUSTSEC-2026-0286
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cryptoki (crates.io) | from 0.0.0-0 before 0.10.1, from 0.11.0 before 0.11.1, from 0.12.0 before 0.12.1 | RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| RustSec Advisory Database | RUSTSEC-2026-0286 changed 2026-09-17 | CC0-1.0 |