{"id":"GHSA-h9f2-fgp8-vc4h","aliases":["GHSA-h9f2-fgp8-vc4h","RUSTSEC-2026-0238"],"related":[],"kind":"vulnerability","state":"published","title":"Low-level GCM ignores the operation nonce","summary":"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.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"rustsec"}],"published":"2026-08-09T12:00:00.000Z","modified":"2026-10-12T18:00:14.307Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"2.0.0"}],"ecosystem":"crates.io","package":"dcrypt-algorithms","purl":"pkg:cargo/dcrypt-algorithms","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/dcrypt-algorithms","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0238.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/ioi-foundation/dcrypt/commit/c99cc86f0ee353010cd202cbcd2c310371b0bbb8","tags":["web"],"sources":["rustsec"]},{"url":"https://github.com/ioi-foundation/dcrypt/releases/tag/v2.0.0","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0238","url":"https://rustsec.org/advisories/RUSTSEC-2026-0238.html","licence":"CC0-1.0","modified":"2026-10-12T18:00:14.307Z"}],"updatedAt":"2026-11-25T22:56:43.392Z"}