Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app passing empty/short GCM nonce
-
DeliveryCapture repeated zero-IV ciphertexts on network
-
ExploitRecover plaintext XOR from reused keystream
-
ExecutionExtract exposed GHASH authentication key
-
ImpactForge ciphertexts accepted by Open
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Nonce/key pair uniqueness
|
| Exploitation Conditions | Not a default-configuration remote flaw: exploitation requires that the calling application either (1) passes a nonce shorter than NonceSize() - DefaultGCMIVLength is 16, and 1-byte, 12-byte, or empty nonces are accepted without error - to the AEAD returned by SecretKey.NewGCM().Seal(), or (2) enables Config.UseGCMIVFromHSM (the documented AWS CloudHSM setup) without also setting GCMIVFromHSMControl.SupplyIvForHSMGCMEncrypt/Decrypt, which sends pIv=NULL/ulIvLen=0 so the token has nowhere to write its generated IV. BOTH paths additionally require that the PKCS#11 token accepts a zero-length GCM IV - SoftHSM2 2.6.1 does; this is vendor-specific and NIST SP 800-38D requires len(IV) >= 1 bit, so many HSMs will reject it. Limiting factors: a caller that always passes a freshly random/counter nonce of exactly NonceSize() bytes against a token that rejects zero-length IVs is not exposed to the reuse; in HSM-IV mode a non-empty nonce instead triggers a post-encryption panic (DoS) rather than silent reuse; and the v1 copy-back defect additionally affects only the ThalesGroup/ThalesIgnite/v1 module paths. |
| Impact | The signals are mixed and need careful reading. The CVSS 4.0 vector (AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H) scores 9.1 and the vuln.today Decision label is act_now, driven by the high confidentiality and integrity impact: IV/keystream reuse in AES-GCM lets a network observer recover plaintext XORs and, through the exposed GHASH authentication key, forge ciphertexts that Open accepts. However, AC:H is doing real work here - this is not a drive-by remote flaw. Exploitation is contingent on the calling application misusing the API (passing a nonce shorter than NonceSize(), especially an empty one) or deploying the documented UseGCMIVFromHSM configuration without the matching Supply flags, AND on the underlying PKCS#11 token accepting a zero-length GCM IV (SoftHSM2 2.6.1 does; this is vendor-specific and NIST SP 800-38D forbids it). No EPSS score and no KEV listing are provided, so there is no evidence of in-the-wild exploitation - this is a library-level cryptographic defense-in-depth failure whose real-world risk depends heavily on how downstream applications call it. It is a genuine priority for anyone running crypto11 against SoftHSM2 or a token with empty-IV acceptance, but the raw 9.1 overstates risk for deployments that always pass correctly-sized nonces against tokens that reject zero-length IVs. The vendor-supplied CVSS is 4.0-only; no CVSS 3.1 vector was provided to cross-check. |
| Exploit ScenarioDerived | An application using crypto11 with SoftHSM2 calls SecretKey.NewGCM() and passes an empty nonce to Seal - for example because it believes UseGCMIVFromHSM lets the token choose the IV - so every message is encrypted under the same zero-length IV. A network observer who captures two or more such ciphertexts recovers the plaintext XOR from the reused keystream and extracts the GHASH authentication key, then forges ciphertexts that the peer's Open accepts. A public PoC in the vendor GHSA advisory, reproduced with SoftHSM2 2.6.1 on Linux, demonstrates the keystream reuse directly. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
AES-GCM sealing through Eclipse KeyPont crypto11 v2 (<= 2.0.0-rc8) and the deprecated v1 module paths accepts a nonce of any length, including an empty one, and hands it unmodified to CK_GCM_PARAMS, so an application that passes a nonce shorter than NonceSize() against a PKCS#11 token that accepts a zero-length GCM IV (SoftHSM2 2.6.1 does) encrypts every message under the same IV, reusing the keystream and exposing the GHASH authentication key so that a network observer can recover plaintext XORs and forge ciphertexts that Open accepts. The documented UseGCMIVFromHSM configuration (the README setup for AWS CloudHSM) without GCMIVFromHSMControl.SupplyIvForHSMGCMEncrypt/Decrypt either panics after the plaintext has already been encrypted or, with an empty nonce, silently returns ciphertext under an empty IV, and on the v1 line it also never copies the token-generated IV back to the caller. This is not a default-configuration remote flaw: both paths require the calling application to misuse the AEAD and the token to tolerate a zero-length IV, which is vendor-specific (NIST SP 800-38D requires len(IV) >= 1 bit); the vendor advisory includes a proof-of-concept reproduction against SoftHSM2 2.6.1 that is not verified as working exploit code, no confirmed active exploitation is reported, and the vendor priority assessment is act now.
RemediationAI
Upgrade to v2.0.0-rc9 with 'go get github.com/eclipse-keypont/crypto11/v2@v2.0.0-rc9' (fix commit 8d99b73c721c173ad85c0ca4e063c3da360a611d, pull request 172, per the advisory at https://github.com/eclipse-keypont/crypto11/security/advisories/GHSA-c2cp-4qw8-q4jg); there is no patch for the v1 module paths, so migrate them to the v2 module. Expect two upgrade side effects: the default GCMIVLength remains 16, so callers that pass 12-byte nonces must set GCMIVLength: 12 (NewGCM now refuses any GCMIVLength below 12), and Seal now panics while Open returns an error for any nonce that is not exactly NonceSize() bytes, so call sites that previously passed wrong-length nonces must validate the length or recover the panic. Where upgrading immediately is not possible, the advisory's workarounds are to always pass a freshly random or counter-derived nonce of exactly aead.NonceSize() bytes and check its length before calling Seal/Open; where UseGCMIVFromHSM is enabled, to also set GCMIVFromHSMControl.SupplyIvForHSMGCMEncrypt and SupplyIvForHSMGCMDecrypt and pass a NonceSize()-byte nonce buffer; and on v1.6.x to stop using UseGCMIVFromHSM entirely, at the cost of managing the IV in the application. Updating is the only complete fix - the workarounds leave the missing length validation in the library.
Affected ProductsAI
The Go module go/github.com/eclipse-keypont/crypto11/v2 is vulnerable through version 2.0.0-rc8 and fixed in 2.0.0-rc9; the deprecated module paths go/github.com/eclipse-keypont/crypto11 <= 1.6.8, go/github.com/ThalesGroup/crypto11 <= 1.7.0-rc1 and go/github.com/ThalesIgnite/crypto11 <= 1.2.5 are vulnerable and have not been patched, including the HSM-IV copy-back defect, so v1 users are directed to migrate to the v2 module. Exposure is conditional on the deployment: applications that call Seal()/Open() with a nonce shorter than NonceSize() (in particular an empty one), or that enable Config.UseGCMIVFromHSM without GCMIVFromHSMControl.SupplyIvForHSMGCMEncrypt/Decrypt, are affected only to the extent the underlying PKCS#11 token accepts a zero-length GCM IV - SoftHSM2 2.6.1 does, while NIST SP 800-38D-conformant HSMs generally reject it. Vendor advisory and fix details are at https://github.com/eclipse-keypont/crypto11/security/advisories/GHSA-c2cp-4qw8-q4jg, with the Eclipse assignment record at https://gitlab.eclipse.org/security/cve-assignment/-/work_items/491.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
crypto11 is a Go wrapper over PKCS#11 that exposes HSM-backed keys as standard crypto interfaces; SecretKey.NewGCM() returns a cipher.AEAD implementation that marshals the caller's nonce into the token's CK_GCM_PARAMS structure. The root cause is CWE-323 (reuse of a nonce or key in a stream cipher), with the advisory also classifying CWE-20 (improper input validation) and CWE-1204 (generation of weak initialization vector / nonce): the aead.go Seal/Open paths perform no len(nonce) != g.NonceSize() check, and DefaultGCMIVLength of 16 in crypto11.go is advisory only, so 1-byte, 12-byte and empty nonces are all accepted. GCM IV reuse is catastrophic because the same counter-mode keystream is regenerated, allowing ciphertext XOR to recover plaintext XOR, and because the reused IV also lets an attacker recover the GHASH authentication subkey via the Joux forbidden attack and thereby forge tags. The second defect is a buffer-management bug in HSM-IV mode: params are built with pkcs11.NewGCMParams(nil, aad, 128) rather than pkcs11-go's NewGCMParamsHSMIV, which pre-allocates the IV buffer, so unless SupplyIvForHSMGCMEncrypt is set the token receives pIv=NULL, ulIvLen=0 and has nowhere to write the IV it generates - a non-empty nonce then yields the 'nonce slice too small to hold IV' panic after encryption has already occurred, and an empty nonce yields ciphertext under an empty IV with no error. The v1 module paths (github.com/eclipse-keypont/crypto11, github.com/ThalesGroup/crypto11, github.com/ThalesIgnite/crypto11), built on the miekg/pkcs11 binding's cGCMParams which likewise sends a NULL IV for a nil slice, additionally never copy the token-generated IV back into the caller's nonce, so the caller retains its own nonce while the data was encrypted under a different one. The affected surface is any Go application using these module paths against a software or hardware token that does not reject zero-length GCM IVs.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
A network observer reads plaintext XORs and forges accepted ciphertexts (C:H/I:H), but exploitation needs caller nonce misuse plus a token accepting a zero-length IV (AC:H); no privileges or interaction (PR:N/UI:N).
Primary rating from Vendor (eclipse).
CVSS VectorVendor: eclipse
DescriptionCVE.org
In github.com/eclipse-keypont/crypto11/v2 versions <= 2.0.0-rc8 (and the deprecated v1 module paths github.com/eclipse-keypont/crypto11 <= 1.6.8, github.com/ThalesGroup/crypto11 <= 1.7.0-rc1 and github.com/ThalesIgnite/crypto11 <= 1.2.5), the cipher.AEAD returned by SecretKey.NewGCM() passes whatever nonce it is given straight to CK_GCM_PARAMS without checking its length against NonceSize(), and accepts an empty nonce. On a token that accepts a zero-length GCM IV - SoftHSM2 does - every Seal with an empty nonce encrypts under the same IV, reusing the keystream and exposing the GHASH authentication key, which allows forgeries. Separately, Config.UseGCMIVFromHSM sends a NULL IV with length zero to the token unless GCMIVFromHSMControl.SupplyIvForHSMGCMEncrypt is also set, so the token has nowhere to write the IV it generates: a Seal with a non-empty nonce panics after the plaintext has already been encrypted, and a Seal with an empty nonce returns ciphertext under an empty IV without error. On the v1 line HSM-IV mode additionally never copies the token-generated IV back to the caller, so the caller keeps its own nonce while the data was encrypted under another one.
Technical POC Analysis
Primary bug class is CWE-323: Reusing a Nonce, Key Pair in Encryption, enabled by missing input validation (CWE-20) and resulting in weak IV generation (CWE-1204).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical cryptographic flaw in Eclipse KeyPont crypto11 v2 (<=2.0.0-rc8) and its deprecated v1 module paths allows applications that pass short or empty nonces to encrypt multiple messages with the same IV, enabling a network observer to recover plaintext XORs and forge ciphertexts that Open (likely a recipient system) accepts. This impacts applications using these libraries with PKCS#11 tokens that accept zero-length GCM IVs, such as SoftHSM2 2.6.1, and can lead to data confidentiality and integrity breaches for affected communications.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-131649
GHSA-9q64-h4f4-jp28
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB