CVE-2026-4598: Infinite loop in jsrsasign
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)).
AI Analysis
Technical Summary
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.
CVE-2026-4598: Infinite loop in 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
Affected software
jsrsasign
org.webjars.npm:jsrsasign
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.