CVE-2026-116587

Go JOSE: DoS when parsing JWKs that contain RSA keys

Published Oct 26, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.6, go-jose parses attacker-controlled RSA modulus and prime values from JWKs without enforcing size and consistency bounds before passing them to crypto/rsa.PrivateKey.Validate. On Go 1.24 and later, crafted large or degenerate RSA parameters can make that validation consume cubic CPU time, allowing remote denial of service in applications that parse JWKs from untrusted sources. This issue is fixed in version 4.1.6.

Analysis

AI-generated

Technical impact

The vulnerability in Go JOSE allows an attacker to cause a denial of service by supplying specially crafted JSON Web Key (JWK) objects containing extremely large or degenerate RSA modulus and prime values. The library parses these parameters without enforcing size or consistency bounds before validating them with crypto/rsa.PrivateKey.Validate. When executed on Go 1.24 and later, the validation can consume cubic CPU time, starving the application of resources and disrupting normal operation. The weakness falls under Resource Exhaustion (CWE-407) and Out‑of‑Bounds Input (CWE-770).

Affected Systems

The affected component is the Go JOSE library (go-jose:go-jose). Versions prior to 4.1.6 are vulnerable; those that use the library to parse JWKs from untrusted sources (for example, OAuth or API authentication services) are at risk. Updating to version 4.1.6 or later eliminates the problem.

Risk and Exploitability

The CVSS score of 7.5 indicates a high risk. Because the exploit does not require elevated privileges and can be performed remotely by supplying a malicious JWK string, the attack vector is likely external. The absence of an EPSS score and the fact that the vulnerability is not listed in the CISA KEV catalog suggest that exploitation is possible but not confirmed in the wild. Nevertheless, the potential for severe service disruption warrants prompt action.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Go JOSE v4.1.6 or later to remove the vulnerable parsing logic
  • Restrict the acceptance of JWK inputs to trusted sources and perform additional size validations on RSA parameters
  • If upgrading cannot be done immediately protect the process with resource limits such as CPU quotas or cgroup restrictions to mitigate DoS impact

Generated by OpenCVE AI on October 26, 2026 at 23:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mgcc-cww5-fp2q Go JOSE: DoS when parsing JWKs that contain RSA keys
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Go-jose
Go-jose go-jose
Vendors & Products Go-jose
Go-jose go-jose
Type Values Removed Values Added
Description Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.6, go-jose parses attacker-controlled RSA modulus and prime values from JWKs without enforcing size and consistency bounds before passing them to crypto/rsa.PrivateKey.Validate. On Go 1.24 and later, crafted large or degenerate RSA parameters can make that validation consume cubic CPU time, allowing remote denial of service in applications that parse JWKs from untrusted sources. This issue is fixed in version 4.1.6.
Title Go JOSE: DoS when parsing JWKs that contain RSA keys
Weaknesses CWE-407
CWE-770
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 27, 2026, 2:17 PM
Reserved
Oct 26, 2026, 3:03 PM
Status
Awaiting Analysis
Published
Oct 26, 2026, 10:16 PM
Modified
Oct 27, 2026, 3:16 PM
Severity
Important
Public date
Oct 26, 2026, 9:12 PM