Advisory

RUSTSEC-2026-0238

Also known as: 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
Gcm builder required an operation nonce but derived J0 from the nonce
captured by the original Gcm constructor. Multiple operations could therefore
silently reuse a nonce even when callers supplied distinct values, compromising
confidentiality and authenticity under an affected key.

Version 2.0.0 makes Gcm key-only and passes the operation nonce through IV
derivation, encryption, and decryption. It also corrects non-96-bit IV
processing, rejects tags shorter than 96 bits, and enforces counter limits.
Applications must upgrade, identify affected keys, rotate them, and re-encrypt
affected data; updating the implementation cannot restore security after nonce
reuse.

Severity

Not rated by the source.

Dates

Published
2026-08-09 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

dcrypt-algorithms

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 2.0.0 (semver)

Fixed versions

2.0.0

Fix

  • Fixed version 2.0.0
    cargo update -p dcrypt-algorithms --precise 2.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences