Skip to main content
EPSS 0.5%top 56%

CVE-2026-4598: Infinite loop in jsrsasign

0
High
VulnerabilityCVE-2026-4598cvecve-2026-4598
Published: 03/23/2026 (03/23/2026, 05:00:11 UTC)
Source: CVE Database V5
Product: jsrsasign

Description

Versions of the package jsrsasign before 11.1.1 are vulnerable to Infinite loop via the bnModInverse function in ext/jsbn2.js when the BigInteger.modInverse implementation receives zero or negative inputs, allowing an attacker to hang the process permanently by supplying such crafted values (e.g., modInverse(0, m) or modInverse(-1, m)).

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P

Affected software

jsrsasign

Affected versions
>=0 <11.1.1

org.webjars.npm:jsrsasign

Affected versions
>=0
jsrsasign
pkg:npm/jsrsasign
Affected versions
=0<11.1.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 13:21:16 UTC

Technical Analysis

The vulnerability CVE-2026-4598 affects jsrsasign versions prior to 11.1.1. The bnModInverse function in ext/jsbn2.js, part of the BigInteger.modInverse implementation, does not properly handle zero or negative inputs. When such crafted inputs (e.g., modInverse(0, m) or modInverse(-1, m)) are supplied, the function enters an infinite loop, causing the process to hang indefinitely. This flaw can be exploited remotely to cause a permanent denial of service. Red Hat products that incorporate jsrsasign, such as the Migration Toolkit for Virtualization and Red Hat Quay, are impacted. Red Hat has analyzed the issue but currently does not offer a fix or effective mitigation that meets their standards for ease of use, applicability, and stability.

Potential Impact

An attacker can remotely cause a permanent denial of service by supplying crafted zero or negative inputs to the vulnerable bnModInverse function, resulting in an infinite loop that hangs the affected process. This impacts availability but does not affect confidentiality or integrity. The vulnerability affects software components used in Red Hat products, potentially disrupting services relying on jsrsasign.

Mitigation Recommendations

Currently, no official fix or patch is available for this vulnerability. Red Hat states that available mitigation options either do not exist or do not meet their criteria for ease of use, applicability, or stability. Users should monitor vendor advisories for updates and consider upgrading to versions of jsrsasign 11.1.1 or later when available. For affected Red Hat products, consult Red Hat support or Technical Account Managers for guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
snyk
Date Reserved
2026-03-22T16:25:51.590Z
Cvss Version
4.0
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-4598","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19409","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19410","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6720","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6568","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19375","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22840","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:23361","vendor":"Red Hat"}]

Threat ID: 69c0d39df4197a8e3b12da3d

Added to database: 03/23/2026, 05:46:05 UTC

Last enriched: 08/17/2026, 13:21:16 UTC

Last updated: 09/11/2026, 22:23:28 UTC

Views: 174

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses