{"id":"RUSTSEC-2026-0286","revision":"820d15d1821a4e8f99e384b4a97de8f5","records":[{"revision":"820d15d1821a4e8f99e384b4a97de8f5","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0286","aliases":["GHSA-r6vc-97x9-63vv"],"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.","state":0,"publishedAt":"2026-09-16T12:00:00+00:00","modifiedAt":"2026-09-17T07:45:03.5200517+00:00","affected":[{"ecosystem":"crates.io","name":"cryptoki","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.10.1"},{"kind":"introduced","version":"0.11.0"},{"kind":"fixed","version":"0.11.1"},{"kind":"introduced","version":"0.12.0"},{"kind":"fixed","version":"0.12.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/cryptoki","https://rustsec.org/advisories/RUSTSEC-2026-0286.html","https://github.com/parallaxsecond/rust-cryptoki/pull/368"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0286","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0286","identifiers":["RUSTSEC-2026-0286","GHSA-r6vc-97x9-63vv"]},"retained":false,"historicalAffected":[]}],"coverage":[]}