Back

MEDIUM

Jwcrypto: jwcrypto: denial of service via o(n^2) duplicate check on unbounded jwk key_ops array

Published Sep 16, 2026

Description

A flaw was found in jwcrypto. The JWK.import_key() function validates the key_ops JWK member for duplicate values using an algorithm with O(n^2) time complexity, and the length of key_ops is not bounded. A remote, unauthenticated attacker can supply a JWK with a large key_ops array to an application that passes attacker-controlled key material to a public key-import API (reachable via ECDH-ES key agreement, OIDC dynamic client registration, DPoP, or ACME account key registration, among others) to consume excessive CPU time, resulting in a denial of service.

Affected products

Remediation

Vendor solution

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Red Hat statement

This Moderate flaw in `jwcrypto` allows a remote, unauthenticated attacker to trigger a denial of service in Red Hat products that process untrusted JSON Web Key (JWK) material. By supplying a JWK with an excessively large `key_ops` array, an attacker can cause applications to consume significant CPU resources during validation, leading to service unavailability.

Red Hat mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Metrics

Weaknesses (1)

References (5)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner redhat
Published Sep 16, 2026
Updated Sep 16, 2026
Reserved Sep 15, 2026
CISA Vulnrichment
Updated Sep 16, 2026
NVD
Status Awaiting Analysis
Modified Sep 16, 2026
Red Hat
Severity Moderate
Public date Sep 16, 2026