Skip to content
Heist/ feed
Back to feed
UnratedFix available

Low-level GCM ignores the operation nonce

Type: advisorySources: OSV

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.

Products
dcrypt-algorithms
Affected versions
Not specified
Fixed versions
2.0.0
CVEs
Not specified
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 08:44 UTC · Revision 1

Source evidence

Low-level GCM ignores the operation nonce

core-osv · Original source

Published 9 Aug 2026, 12:00 UTC

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.

osv:RUSTSEC-2026-0238

dcrypt-algorithms

Fixed versions: 2.0.0

Complete source record
{
  "id": "4014af4963699f69c5c26498480eb275683e58547dd54aa1f737e7736fbf02af",
  "url": "https://osv.dev/vulnerability/RUSTSEC-2026-0238",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Low-level GCM ignores the operation nonce",
    "summary": "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.",
    "evidence": "osv:RUSTSEC-2026-0238",
    "products": [
      {
        "name": {
          "value": "dcrypt-algorithms",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.0.0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "RUSTSEC-2026-0238",
      "aliases": [
        "GHSA-h9f2-fgp8-vc4h",
        "RUSTSEC-2026-0238"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.0.0-0"
                },
                {
                  "fixed": "2.0.0"
                }
              ]
            }
          ],
          "package": {
            "name": "dcrypt-algorithms",
            "purl": "pkg:cargo/dcrypt-algorithms",
            "ecosystem": "crates.io"
          },
          "database_specific": {
            "cvss": null,
            "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0238.json",
            "categories": [
              "crypto-failure"
            ],
            "informational": null
          },
          "ecosystem_specific": {
            "affects": {
              "os": [],
              "arch": [],
              "functions": []
            },
            "affected_functions": null
          }
        }
      ],
      "modified": "2026-10-12T18:00:14.307028143Z",
      "provider": "osv",
      "references": [
        "https://crates.io/crates/dcrypt-algorithms",
        "https://rustsec.org/advisories/RUSTSEC-2026-0238.html",
        "https://github.com/ioi-foundation/dcrypt/commit/c99cc86f0ee353010cd202cbcd2c310371b0bbb8",
        "https://github.com/ioi-foundation/dcrypt/releases/tag/v2.0.0"
      ],
      "provider_metadata": {
        "license": "CC0-1.0"
      }
    },
    "related_cves": [],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 306457,
  "published_at": "2026-08-09T12:00:00+00:00"
}