Go
CVE-2026-116587
Go JOSE: DoS when parsing JWKs that contain RSA keys
- Severity
- High 7.5
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 4.1.6
- Exploit chance
- 0.6% in the next 30 daysHigher than 51% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-mgcc-cww5-fp2q
- Sources
- OSV.dev and GitHub
Description
A crafted RSA key inside a JWK can cause operations that parse JWKs to consume excess CPU.
go-jose does not check for bounds on RSA modulus and primes before validating them. Values are passed directly to crypto/rsa.PrivateKey.Validate(). On Go 1.24+, this takes cubic time complexity with respect to the RSA modulus and primes. This allows an attacker to supply a crafted JWK to consume excessive CPU.
Denial of service vulnerability. Any application that uses go-jose to parse JWKs from untrusted sources is affected and should patch immediately.
Affected software
| Software | Affected versions |
|---|---|
github.com/go-jose/go-jose/v3Go · osv:Go:github.com/go-jose/go-jose/v3 |
|
github.com/go-jose/go-jose/v4Go · osv:Go:github.com/go-jose/go-jose/v4 |
|
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
- CVE-2026-116586Go JOSE: Panics in JSON parsingMedium 28 Oct 2026
- CVE-2026-116585Go JOSE: Panic during CBC-HMAC processingMedium 28 Oct 2026
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
- CVE-2026-116586Go JOSE: Panics in JSON parsingMedium 28 Oct 2026
- CVE-2026-116585Go JOSE: Panic during CBC-HMAC processingMedium 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-116587
- GitHub Advisory Database https://github.com/advisories/GHSA-mgcc-cww5-fp2q