---
id: CVE-2026-89318
title: >-
  JweRsaKeyEncryptionDecryptorImpl.Decrypt panics on attacker-chosen IV length
  (stdlib GCM.Open reached without nonce-size check)
summary: >-
  `JweRsaKeyEncryptionDecryptorImpl.Decrypt` passed the JWE's initialization
  vector to `cipher.AEAD.Open` without checking its length. The Go standard
  library **panics** rather than returning an error when a GCM nonce is not
  exactly `Nonce…
severity: medium
cvss: 6.9
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'
cvssSource: cna
cwe:
  - CWE-248
vendor: Eclipse Foundation
product: github.com/ThalesGroup/gose
affected:
  - github.com/ThalesGroup/gose >= 0.8.0 <= 0.13.0-rc1
  - github.com/eclipse-keypont/gose < 1.0.0-rc4
published: '2026-10-23'
updated: '2026-10-23'
sourceUpdated: '2026-10-23T08:51:55.194Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-89318'
references:
  - url: >-
      https://github.com/eclipse-keypont/gose/security/advisories/GHSA-265w-83cm-777q
tags:
  - cve.org
ingestedAt: '2026-10-23T09:20:44.058Z'
---

## Overview

`JweRsaKeyEncryptionDecryptorImpl.Decrypt` passed the JWE's initialization vector to `cipher.AEAD.Open` without checking its length. The Go standard library **panics** rather than returning an error when a GCM nonce is not exactly `NonceSize()` bytes, so a JWE carrying a wrong-sized IV crashes the decrypting goroutine.

## Affected

- `github.com/ThalesGroup/gose >= 0.8.0 <= 0.13.0-rc1`
- `github.com/eclipse-keypont/gose < 1.0.0-rc4`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
