All vulnerabilities

Go

CVE-2026-116585

Go JOSE: Panic during CBC-HMAC processing

Severity
Medium
Published
28 Oct 2026
Last changed
28 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
4.1.5
Exploit chance
0.3% in the next 30 daysHigher than 25% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
CWE-129
Also known as
GHSA-4w3g-jfj2-cw2q
Sources
OSV.dev and GitHub

Description

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.

Insufficient validation of parameters can lead to attempting to index into an empty buffer. See https://github.com/go-jose/go-jose/pull/292.

Denial of service vulnerability. Any application which decrypts untrusted ciphertexts with the indicated algorithms is affected.

From the GitHub Advisory Database, CC BY 4.0.

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/go-jose/go-jose/v3Go · osv:Go:github.com/go-jose/go-jose/v3
  • Every version up to 3.0.5
github.com/go-jose/go-jose/v4Go · osv:Go:github.com/go-jose/go-jose/v4
  • Every version before 4.1.5

About github.com/go-jose/go-jose/v3

Vulnerabilities in github.com/go-jose/go-jose/v3

In our list
3
Published in the last 12 months
3
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for github.com/go-jose/go-jose/v3

About github.com/go-jose/go-jose/v4

Vulnerabilities in github.com/go-jose/go-jose/v4

In our list
3
Published in the last 12 months
3
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for github.com/go-jose/go-jose/v4

References