{"id":"GHSA-r6vc-97x9-63vv","aliases":["GHSA-r6vc-97x9-63vv","RUSTSEC-2026-0286"],"related":[],"kind":"vulnerability","state":"published","title":"Out-of-bounds read when decoding CKA_ALLOWED_MECHANISMS","summary":"`cryptoki` treated the CKA_ALLOWED_MECHANISMS ulValueLen byte count as a\nCK_MECHANISM_TYPE element count. A valid nonempty attribute returned through\nthe safe `Session::get_attributes` API could cause construction of an\nout-of-bounds slice and undefined behavior.\n\nPossible consequences include a process crash or denial of service and\npotential disclosure of adjacent heap words. Upgrade to the fixed patch release\nfor the cryptoki 0.10, 0.11, or 0.12 line.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"`cryptoki` treated the CKA_ALLOWED_MECHANISMS ulValueLen byte count as a\nCK_MECHANISM_TYPE element count. A valid nonempty attribute returned through\nthe safe `Session::get_attributes` API could cause construction of an\nout-of-bounds slice and undefined behavior.\n\nPossible consequences include a process crash or denial of service and\npotential disclosure of adjacent heap words. Upgrade to the fixed patch release\nfor the cryptoki 0.10, 0.11, or 0.12 line.","format":"markdown","source":"rustsec"}],"published":"2026-09-16T12:00:00.000Z","modified":"2026-09-17T07:45:03.520Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.10.1"},{"type":"semver","introduced":"0.11.0","status":"affected","fixed":"0.11.1"},{"type":"semver","introduced":"0.12.0","status":"affected","fixed":"0.12.1"}],"ecosystem":"crates.io","package":"cryptoki","purl":"pkg:cargo/cryptoki","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/cryptoki","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0286.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/parallaxsecond/rust-cryptoki/pull/368","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0286","url":"https://rustsec.org/advisories/RUSTSEC-2026-0286.html","licence":"CC0-1.0","modified":"2026-09-17T07:45:03.520Z"}],"updatedAt":"2026-11-25T22:56:43.408Z"}