{"id":"GHSA-h9f2-fgp8-vc4h","aliases":["RUSTSEC-2026-0238"],"status":"published","title":"Low-level GCM ignores the operation nonce","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-08-09T12:00:00Z","modified":"2026-10-12T18:00:14Z","fixes":[{"ecosystem":"crates.io","package":"dcrypt-algorithms","fixed_in":["2.0.0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"crates.io","package":"dcrypt-algorithms","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"2.0.0"}]}]}],"references":[{"url":"https://crates.io/crates/dcrypt-algorithms","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0238.html","tags":["advisory"]},{"url":"https://github.com/ioi-foundation/dcrypt/commit/c99cc86f0ee353010cd202cbcd2c310371b0bbb8","tags":["web"]},{"url":"https://github.com/ioi-foundation/dcrypt/releases/tag/v2.0.0","tags":["web"]}],"sources":{"osv":[{"id":"RUSTSEC-2026-0238","title":"Low-level GCM ignores the operation nonce","description":"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.","status":"published","published":"2026-08-09T12:00:00Z","modified":"2026-10-12T18:00:14.307028143Z","updated_at":"2026-11-02T15:53:40.430679Z"}]}}
