# CVE-2026-89319: JweDirectDecryptorBlock.Decrypt: unchecked _thales_aad length header reachable with forged tag → index-out-of-range / slice-bounds panic and unbounded allocation

- Severity: Medium 6.3 (CVSS:4.0, scored by eclipse) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-23T08:54:37.681Z
- Modified: 2026-11-02T14:17:40.687Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: eclipse

## Description

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

(As written by CVE List.)

## Affected

- github.com/ThalesGroup/gose: from 0.9.0 up to 0.13.0-rc1
- github.com/eclipse-keypont/gose: before 1.0.0-rc1

## References

- <https://github.com/eclipse-keypont/gose/security/advisories/GHSA-4gj8-hg2r-gw6q> (exploit)

## Sources

- CVE List: [CVE-2026-89319](https://www.cve.org/CVERecord?id=CVE-2026-89319), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-89319](https://nvd.nist.gov/vuln/detail/CVE-2026-89319), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-89319 · Whole record: https://cve.day/CVE-2026-89319.json · Rebuilt by cve.day 2026-11-25T22:59:46.869Z
