# GHSA-r6vc-97x9-63vv: Out-of-bounds read when decoding CKA_ALLOWED_MECHANISMS

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-09-16T12:00:00.000Z
- Modified: 2026-09-17T07:45:03.520Z
- 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.

(As written by RustSec Advisory Database.)

## Affected

- 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

## References

- <https://crates.io/crates/cryptoki> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0286.html> (advisory)
- <https://github.com/parallaxsecond/rust-cryptoki/pull/368> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0286](https://rustsec.org/advisories/RUSTSEC-2026-0286.html), CC0-1.0, modified 2026-09-17

---

Page: https://cve.day/GHSA-r6vc-97x9-63vv · Whole record: https://cve.day/GHSA-r6vc-97x9-63vv.json · Rebuilt by cve.day 2026-11-25T22:56:43.408Z
