{"id":"RUSTSEC-2026-0238","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.","aliases":["GHSA-h9f2-fgp8-vc4h"],"modified":"2026-08-09T12:45:02.673005453Z","published":"2026-08-09T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/dcrypt-algorithms"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0238.html"},{"type":"ADVISORY","url":"https://github.com/ioi-foundation/dcrypt/security/advisories/GHSA-h9f2-fgp8-vc4h"},{"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"}],"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":[],"os":[],"functions":[]}},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0238.json","categories":["crypto-failure"],"cvss":null,"informational":null}}],"schema_version":"1.8.0"}