Skip to content

← Actionable
Medium, CVSS 6.9amended

Go JOSE: Panic during CBC-HMAC processing

CVE-2026-116585GHSA-4w3g-jfj2-cw2q

What to do

Partial vendor fix. Follow the primary source's mitigation guidance and check back for a fix.

This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.

Affected packages

  • Go github.com/go-jose/go-jose/v3

    Affected
    <= 3.0.5
    Fixed in
    no fixed version recorded
  • Go github.com/go-jose/go-jose/v4

    Affected
    < 4.1.5
    Fixed in
    4.1.5

Sources

Severity and exploitation
Exploitation
No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
CVSS 4.0
6.9 · 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 · score source
EPSS
  • CVE-2026-116585: 0.26% estimated exploitation activity in the next 30 days; percentile 18.39 (FIRST EPSS, 2026-11-03). This is a model estimate, not proof of exploitation or customer exposure.
Source description

As published by the source; long descriptions are shortened.

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.

Dates and revisions
Published by the source
Last modified by the source
Source last checked
  1. Revision 2 · amended ·

    Amended from osv record GHSA-4w3g-jfj2-cw2q

  2. Revision 1 · created ·

    Published from ghsa record GHSA-4w3g-jfj2-cw2q

Agent brief

Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.

# Patch Next advisory brief: CVE-2026-116585

Advisory: Go JOSE: Panic during CBC-HMAC processing
IDs: CVE-2026-116585, GHSA-4w3g-jfj2-cw2q
Record: https://patchnext.com/advisories/cve-2026-116585 (revision 2, source checked 29 Oct 2026, 06:45 UTC)
Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected.
Severity: Medium (CVSS 6.9)
Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV.
Vendor response: Partial vendor fix; fixed versions by package: github.com/go-jose/go-jose/v4 4.1.5. A vendor fix does not mean a deployment is fixed.

## Affected components
- Go github.com/go-jose/go-jose/v3: affected <= 3.0.5
- Go github.com/go-jose/go-jose/v4: affected < 4.1.5; fixed in 4.1.5

## Suggested inspection (read-only)
- Go github.com/go-jose/go-jose/v3: check the installed version with your package manager.
- Go github.com/go-jose/go-jose/v4: check the installed version with your package manager.

## Supported action
No complete vendor fix is recorded. Follow the primary source's mitigation guidance and check this record again before closing anything.

## Required regression checks
- Run the test suite and a production build.
- Exercise the features that depend on github.com/go-jose/go-jose/v3, github.com/go-jose/go-jose/v4.
- Repeat the inspection and confirm that only fixed versions remain installed.

## Rollback considerations
- Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward.

## Unresolved questions
- Which deployments run an affected version?
- Exploitation status can change. Check again before lowering the priority.
- Mark the work resolved only after the fixed version is verified in production.

## Sources
- Verified: https://github.com/advisories/GHSA-4w3g-jfj2-cw2q (GitHub-reviewed advisory GHSA-4w3g-jfj2-cw2q lists affected ranges: Go github.com/go-jose/go-jose/v4 >=0 =0 <=3.0.5)
- Verified: https://osv.dev/vulnerability/GHSA-4w3g-jfj2-cw2q (OSV record GHSA-4w3g-jfj2-cw2q lists affected ranges: Go github.com/go-jose/go-jose/v4 >=0 =0 <=3.0.5)

Commands are suggestions: review each one before running it.

Loading voting…