← Lab /Security & privacy

Zero-length nonce lets attacker recover GCM hash key and forge messages

A zero-length nonce in ISO/IEC GCM/GMAC enables recovery of the hash key and arbitrary forgery

Security & privacy arXiv 6 Aug 2026 Attack Theory

Published as “A Note on the Influence of a Zero Length Nonce on GCM and GMAC”

Why it matters

Implementations that accept zero-length nonces are vulnerable to key recovery and forgery, compromising both integrity and confidentiality.

Summary

The paper demonstrates that a zero-length nonce allowed by the ISO/IEC version of GCM/GMAC enables recovery of the GHASH hash key with a single ciphertext observation, after which an attacker can forge arbitrary ciphertexts or messages. The attack is a simple algebraic key-recovery that does not work against the NIST version, which mandates a non-empty nonce. Evidence is a theoretical construction and proof, not an empirical evaluation.

What they found 1

  1. A zero-length nonce allows recovery of the GHASH hash key, enabling arbitrary forgery.

    “In this note, we show a simple attack that can recover the hash key of GCM and GMAC by using a zero length nonce.”

Caveats 3

  • The attack only applies to the ISO/IEC version; the NIST version explicitly requires the nonce to be at least one bit, preventing the attack.
  • We note that the ISO/IEC version of GCM and GMAC allows the nonce to be a zero length string, while the NIST version requires the minimal length of a nonce to be 1 bit. Therefore, our attack can apply to the ISO/IEC version and cannot work for the NIST version.
  • We have found that several real-world implementations accept zerolength nonces. To avoid exposing them to potential attacks, we do not identify them here and will notify the affected parties independently whenever possible.

What’s new here 3

  • Shows a key-recovery attack that exploits a zero-length nonce, which prior work had not considered.
  • Demonstrates that the ISO/IEC specification’s lack of a minimum nonce length creates a practical forgery vulnerability.
  • Clarifies the security difference between ISO/IEC and NIST versions of GCM/GMAC regarding nonce length.