GitHub Advisoryadvisory · Go

GHSA-4w3g-jfj2-cw2q Go JOSE: Panic during CBC-HMAC processing

MEDIUM Published 2026-10-28 Modified 2026-10-28 Official page ↗
Aliases
CVE-2026-116585
Ecosystem
Go
Packages
github.com/go-jose/go-jose/v4, github.com/go-jose/go-jose/v3
Severity
Moderate
CVSS vector
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
Weaknesses
CWE-129
Reviewed
2026-10-28

Affected packages

• Go github.com/go-jose/go-jose/v4: < 4.1.5 → fixed in 4.1.5 • Go github.com/go-jose/go-jose/v3: <= 3.0.5 (no fix yet)

Description

Summary Decrypting a ciphertext with "A128CBC-HS256", "A192CBC-HS384", or "A256CBC-HS512" can result in a panic on untrusted input. Note this advisory is the same as https://github.com/go-jose/go-jose/security/advisories/GHSA-6mp9-8xrw-74r4. Details Insufficient validation of parameters can lead to attempting to index into an empty buffer. See https://github.com/go-jose/go-jose/pull/292. Workarounds If the application does not require the CBC-HMAC modes for content encryption, and is using github.com/go-jose/go-jose/v4, do not include them in the list of ContentEncryption algorithms passed to ParseEncrypted / ParseEncryptedJSON / ParseEncryptedCompact. Impact Denial of service vulnerability. Any application which decrypts untrusted ciphertexts with the indicated algorithms is affected. Acknowledgements Thanks to Joshua Rogers of AISLE Research for reporting this problem.

Related

Alias · CVE (1)

  • CVE-2026-116585 Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web… vulnerability

Weakness · CWE (1)

  • CWE-129 Improper Validation of Array Index weakness

References