CVE-2026-4598: Versions of the package jsrsasign before 11.1.1 are vulnerable to Infinite loop via the bnModInverse functi...
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)).
Security readout for executives and security teams
Plain-English summary
CVE-2026-4598 is a denial-of-service flaw in jsrsasign. If an application lets an attacker influence values passed into a BigInteger modular inverse operation, the process can hang indefinitely. The main business risk is service unavailability, not data theft or code execution.
Executive priority
Treat as a high-priority availability issue for internet-facing or authentication-related services using jsrsasign. Prioritize patching where the library processes user-supplied cryptographic or numeric inputs. This is less urgent for systems without the vulnerable dependency or without attacker-controlled access to the affected function.
Technical view
jsrsasign versions before 11.1.1 are vulnerable to an infinite loop in ext/jsbn2.js bnModInverse / BigInteger.modInverse when given zero or negative inputs. The CVSS 4.0 score is 8.7, with network attack vector, low complexity, no privileges, no user interaction, and high availability impact.
Likely exposure
Exposure is most likely in Node.js or Java WebJars applications using jsrsasign before 11.1.1 where untrusted input can reach BigInteger.modInverse. Applications only using unaffected versions, or not invoking the vulnerable path with attacker-controlled values, have lower practical exposure.
Exploitation context
The source bundle includes a public gist and upstream fix references, but does not establish active exploitation. CISA KEV status is false in the provided data. Exploitation would primarily cause application hang or resource exhaustion rather than confidentiality or integrity compromise.
Researcher notes
Key evidence points to an upstream fix in jsrsasign and Snyk advisories for npm and WebJars packaging. The affected condition is specific: zero or negative inputs to modInverse. The provided data does not prove active exploitation or broader impact beyond denial of service.
Mitigation direction
Upgrade jsrsasign to version 11.1.1 or later.
Update org.webjars.npm:jsrsasign where used in Java projects.
Apply relevant Red Hat errata if using affected Red Hat-packaged software.
If immediate upgrade is blocked, restrict untrusted inputs reaching modular inverse operations.
Monitor vendor advisories for product-specific remediation details.
Validation and detection
Inventory direct and transitive jsrsasign dependencies across npm and Maven projects.
Flag jsrsasign versions earlier than 11.1.1.
Review code paths that pass user-controlled values into BigInteger.modInverse.
Confirm deployed containers and build artifacts contain the remediated dependency.
Check Red Hat CSAF or errata status for managed platforms.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-1287: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-1287 · source CWE mapping
Improper Validation of Specified Type of Input
Improper Validation of Specified Type of Input represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Loop with Unreachable Exit Condition ('Infinite Loop')
Loop with Unreachable Exit Condition ('Infinite Loop') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.