GHSA-4w3g-jfj2-cw2q
Go JOSE: Panic during CBC-HMAC processing
Quick fix
GHSA-4w3g-jfj2-cw2q — github.com/go-jose/go-jose/v4: upgrade to the fixed version with the command below.
go get github.com/go-jose/go-jose/v4@v4.1.5Details
### 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 4.1.5go get github.com/go-jose/go-jose/v4@v4.1.50No fixed version published yet for github.com/go-jose/go-jose/v3 (go modules). Pin to a known-safe version or switch to an alternative.
References
- https://github.com/go-jose/go-jose/security/advisories/GHSA-4w3g-jfj2-cw2q[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2026-116585[ADVISORY]
- https://github.com/go-jose/go-jose/pull/292[WEB]
- https://github.com/go-jose/go-jose/commit/35883f7999e87cbd1b1f4cda07fdad8cd71c3dd6[WEB]
- https://github.com/go-jose/go-jose/commit/74114c2fa22669a2b2a296746eaa82e15566fd54[WEB]
- https://github.com/go-jose/go-jose[PACKAGE]
- https://github.com/go-jose/go-jose/releases/tag/v4.1.5[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/go-jose/go-jose/v4"]}'