{"id":"GHSA-r6vc-97x9-63vv","aliases":["RUSTSEC-2026-0286"],"status":"published","title":"Out-of-bounds read when decoding CKA_ALLOWED_MECHANISMS","description":"`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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-09-16T12:00:00Z","modified":"2026-09-17T07:45:03Z","fixes":[{"ecosystem":"crates.io","package":"cryptoki","fixed_in":["0.10.1","0.11.1","0.12.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"crates.io","package":"cryptoki","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"}]}]}],"references":[{"url":"https://crates.io/crates/cryptoki","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0286.html","tags":["advisory"]},{"url":"https://github.com/parallaxsecond/rust-cryptoki/pull/368","tags":["web"]}],"sources":{"osv":[{"id":"RUSTSEC-2026-0286","title":"Out-of-bounds read when decoding CKA_ALLOWED_MECHANISMS","description":"`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.","status":"published","published":"2026-09-16T12:00:00Z","modified":"2026-09-17T07:45:03.520051741Z","updated_at":"2026-11-02T15:53:40.430679Z"}]}}
