{"schema_version":"1.9.0","id":"RUSTSEC-2026-0238","published":"2026-08-09T12:00:00Z","modified":"2026-10-12T18:00:14.307028143Z","aliases":["GHSA-h9f2-fgp8-vc4h"],"summary":"Low-level GCM ignores the operation nonce","details":"In all published versions of `dcrypt-algorithms` before 2.0.0, the low-level\n`Gcm` builder required an operation nonce but derived `J0` from the nonce\ncaptured by the original `Gcm` constructor. Multiple operations could therefore\nsilently reuse a nonce even when callers supplied distinct values, compromising\nconfidentiality and authenticity under an affected key.\n\nVersion 2.0.0 makes `Gcm` key-only and passes the operation nonce through IV\nderivation, encryption, and decryption. It also corrects non-96-bit IV\nprocessing, rejects tags shorter than 96 bits, and enforces counter limits.\nApplications must upgrade, identify affected keys, rotate them, and re-encrypt\naffected data; updating the implementation cannot restore security after nonce\nreuse.","affected":[{"package":{"name":"dcrypt-algorithms","ecosystem":"crates.io","purl":"pkg:cargo/dcrypt-algorithms"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"2.0.0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":[],"os":[]}},"database_specific":{"categories":["crypto-failure"],"cvss":null,"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0238.json"}}],"references":[{"type":"PACKAGE","url":"https://crates.io/crates/dcrypt-algorithms"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0238.html"},{"type":"WEB","url":"https://github.com/ioi-foundation/dcrypt/commit/c99cc86f0ee353010cd202cbcd2c310371b0bbb8"},{"type":"WEB","url":"https://github.com/ioi-foundation/dcrypt/commit/c99cc86f0ee353010cd202cbcd2c310371b0bbb8"},{"type":"WEB","url":"https://github.com/ioi-foundation/dcrypt/releases/tag/v2.0.0"}],"database_specific":{"license":"CC0-1.0"}}