{"id":"CVE-2026-115407","details":"In `github.com/eclipse-keypont/crypto11/v2` versions `\u003c= 2.0.0-rc8` (and the deprecated v1 module paths `github.com/eclipse-keypont/crypto11 \u003c= 1.6.8`, `github.com/ThalesGroup/crypto11 \u003c= 1.7.0-rc1` and `github.com/ThalesIgnite/crypto11 \u003c= 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.","aliases":["GHSA-c2cp-4qw8-q4jg"],"modified":"2026-11-21T21:00:19.687173220Z","published":"2026-11-20T16:10:45.740Z","database_specific":{"cna_assigner":"eclipse","cwe_ids":["CWE-1204","CWE-20","CWE-323"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115407.json"},"references":[{"type":"WEB","url":"https://gitlab.eclipse.org/security/cve-assignment/-/work_items/491"},{"type":"WEB","url":"https://pkg.go.dev"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115407.json"},{"type":"ADVISORY","url":"https://github.com/eclipse-keypont/crypto11/security/advisories/GHSA-c2cp-4qw8-q4jg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115407"},{"type":"FIX","url":"https://github.com/eclipse-keypont/crypto11/commit/8d99b73c721c173ad85c0ca4e063c3da360a611d"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/eclipse-keypont/crypto11","events":[{"introduced":"0"},{"fixed":"8d99b73c721c173ad85c0ca4e063c3da360a611d"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"2.0.0-rc8"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"introduced":"0"},{"last_affected":"1.6.8"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"1.7.0-rc1"}]},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"1.2.5"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"8d99b73c721c173ad85c0ca4e063c3da360a611d"}]}]}}],"versions":["v2.0.0-rc8","v1.6.1","v1.6.0","v1.5.0","v1.4.1","v1.4.0","v1.3.0","v1.2.5","v1.2.4","v1.2.3","v1.2.2","v1.2.1","v1.2.0","v1.1.1","v1.1.0","v1.0.2","v1.0.1","v1.0.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115407.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}