Advisory

GHSA-4w3g-jfj2-cw2q

Also known as: CVE-2026-116585

Summary

Go JOSE: Panic during CBC-HMAC processing

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-28 21:14 UTC
Modified
2026-10-28 21:30 UTC

Affected packages and fixes

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

Go · All systems

Affected

  • introduced 0, fixed 4.1.5 (semver)

Fixed versions

4.1.5

Fix

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

Go · All systems

Affected

  • introduced 0, last affected 3.0.5 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences