---
id: CVE-2026-89319
title: >-
  JweDirectDecryptorBlock.Decrypt: unchecked _thales_aad length header reachable
  with forged tag → index-out-of-range / slice-bounds panic and unbounded
  allocation
summary: >-
  `JweDirectDecryptorBlock.Decrypt` read a 64-bit plaintext length from the
  `_thales_aad` protected-header field and used it without any validation. A
  truncated field panics `binary.BigEndian.Uint64`, an oversized value drives an
  unbounded…
severity: medium
cvss: 6.3
cvssVector: 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'
cvssSource: cna
cwe:
  - CWE-129
vendor: Eclipse Foundation
product: github.com/ThalesGroup/gose
affected:
  - github.com/ThalesGroup/gose >= 0.9.0 <= 0.13.0-rc1
  - github.com/eclipse-keypont/gose < 1.0.0-rc1
published: '2026-10-23'
updated: '2026-10-23'
sourceUpdated: '2026-10-23T08:54:37.681Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-89319'
references:
  - url: >-
      https://github.com/eclipse-keypont/gose/security/advisories/GHSA-4gj8-hg2r-gw6q
tags:
  - cve.org
ingestedAt: '2026-10-23T09:20:44.058Z'
---

## Overview

`JweDirectDecryptorBlock.Decrypt` read a 64-bit plaintext length from the `_thales_aad` protected-header field and used it without any validation. A truncated field panics `binary.BigEndian.Uint64`, an oversized value drives an unbounded allocation, and a value larger than the decrypted block panics with a slice-bounds error.

## Affected

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

## Remediation

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