Skip to main content

Eclipse KeyPont crypto11 CVE-2026-115407

| EUVDEUVD-2026-131649 CRITICAL
Reusing a Nonce, Key Pair in Encryption (CWE-323)
2026-11-20 eclipse GHSA-9q64-h4f4-jp28
9.1
CVSS 4.0 · Vendor: eclipse
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app passing empty/short GCM nonce
  2. Delivery
    Capture repeated zero-IV ciphertexts on network
  3. Exploit
    Recover plaintext XOR from reused keystream
  4. Execution
    Extract exposed GHASH authentication key
  5. Impact
    Forge 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (eclipse) PRIMARY 9.1 CRITICAL
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
vuln.today AI 7.4 HIGH

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (eclipse).

CVSS VectorVendor: eclipse

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.8%
Top 42% exploitable
Prevalence
Low
niche Go PKCS#11/HSM wrapper library, used only by HSM-integrating applications
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy