CVE-2026-116585

Go JOSE: Panic during CBC-HMAC processing

Published Oct 26, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.5, decrypting untrusted JWE ciphertext with A128CBC-HS256, A192CBC-HS384, or A256CBC-HS512 can pass an empty ciphertext buffer to CBC-HMAC unpadding. Insufficient validation allows the empty buffer to be indexed, causing a panic and denial of service. Applications that decrypt attacker-controlled ciphertext with one of these content-encryption algorithms are affected. This issue is fixed in version 4.1.5.

Analysis

AI-generated

Technical impact

Go JOSE is an open‑source Go implementation of JSON Web Encryption, Signature, and Token standards. An identified bug allows an attacker to supply an empty ciphertext buffer to the A128CBC‑HS256, A192CBC‑HS384, or A256CBC‑HS512 decryption path. The library performs insufficient validation, indexing the buffer during CBC‑HMAC unpadding, which triggers a panic that terminates the process. This results in a denial of service because the application crashes.

Affected Systems

All versions of Go JOSE older than 4.1.5 that support the CBC‑HMAC encryption algorithms are vulnerable. The library is used in many Go projects that process JSON Web Tokens or encrypted payloads. Any application that calls the decryption routines of these algorithms with attacker‑controlled ciphertext is affected. The fix is available in release 4.1.5.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score is below 1%, suggesting a very low probability of exploitation, and it is not listed in CISA KEV. The likely attack vector is an application that receives or constructs JWE ciphertext from an untrusted source and passes it to Go JOSE for decryption. An attacker who can provide a ciphertext that triggers the empty buffer condition can force the library to panic, causing the application to crash and interrupt service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Go JOSE version 4.1.5 or later, which includes proper validation to prevent the empty buffer from being processed.
  • If an upgrade is not immediately possible, validate that ciphertext is non‑empty and conforms to the expected format before calling the decryption routine.
  • Limit the privileges and isolation of services that process untrusted JWTs so that a crash does not lead to wider compromise.

Generated by OpenCVE AI on October 29, 2026 at 14:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4w3g-jfj2-cw2q Go JOSE: Panic during CBC-HMAC processing
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Go-jose
Go-jose go-jose
Vendors & Products Go-jose
Go-jose go-jose
Type Values Removed Values Added
Description Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.5, decrypting untrusted JWE ciphertext with A128CBC-HS256, A192CBC-HS384, or A256CBC-HS512 can pass an empty ciphertext buffer to CBC-HMAC unpadding. Insufficient validation allows the empty buffer to be indexed, causing a panic and denial of service. Applications that decrypt attacker-controlled ciphertext with one of these content-encryption algorithms are affected. This issue is fixed in version 4.1.5.
Title Go JOSE: Panic during CBC-HMAC processing
Weaknesses CWE-129
References
Metrics cvssV4_0

{'score': 6.9, '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-125

    Out-of-bounds Read

  • CWE-129

    Improper Validation of Array Index

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 31, 2026, 1:52 AM
Reserved
Oct 26, 2026, 3:03 PM
Status
Awaiting Analysis
Published
Oct 26, 2026, 10:16 PM
Modified
Oct 31, 2026, 2:17 AM
Severity
Important
Public date
Oct 26, 2026, 9:06 PM