All vulnerabilities

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
Weakness
Inefficient algorithmic complexity (CWE-407)Allocation without limits (CWE-770)
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.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/go-jose/go-jose/v3Go · osv:Go:github.com/go-jose/go-jose/v3
  • Every version up to 3.0.5
github.com/go-jose/go-jose/v4Go · osv:Go:github.com/go-jose/go-jose/v4
  • Every version before 4.1.6

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
Search the list for github.com/go-jose/go-jose/v3

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
Search the list for github.com/go-jose/go-jose/v4

References