---
id: CVE-2026-4598
title: >-
  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 th…
summary: >-
  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 th…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-835
  - CWE-1287
vendor: kjur
product: jsrsasign
affected:
  - jsrsasign < 11.1.1
patched:
  - jsrsasign 11.1.1
published: '2026-03-23'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T13:20:20.940'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-4598'
references:
  - url: 'https://gist.github.com/Kr0emer/a1bf5cd4547cc630d2dcc5e761de8264'
    label: report@snyk.io
  - url: >-
      https://github.com/kjur/jsrsasign/commit/ca5b027240287a1e71fe63019fc4400332594323
    label: report@snyk.io
  - url: 'https://github.com/kjur/jsrsasign/pull/648'
    label: report@snyk.io
  - url: 'https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-15812263'
    label: report@snyk.io
  - url: 'https://security.snyk.io/vuln/SNYK-JS-JSRSASIGN-15370938'
    label: report@snyk.io
  - url: 'https://access.redhat.com/errata/RHSA-2026:19375'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:19409'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:19410'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:22840'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:23361'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:6568'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:6720'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-4598'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2450210'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4598.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-4598'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-4598'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-03-23T14:37:02.606788Z'
epss: 0.00964
epssPercentile: 0.60025
ingestedAt: '2026-06-29T13:24:34.810Z'
---

## Overview

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)).

## Affected

- `jsrsasign < 11.1.1`

## Remediation

Upgrade past the affected range:

- `jsrsasign 11.1.1`

## Vendor advisories

- **RHSA-2026:19409** · Red Hat · fixed in: Migration Toolkit for Virtualization 2.1 · released 2026-05-19 · [advisory](https://access.redhat.com/errata/RHSA-2026:19409)
- **RHSA-2026:19410** · Red Hat · fixed in: Migration Toolkit for Virtualization 2.9 · released 2026-05-19 · [advisory](https://access.redhat.com/errata/RHSA-2026:19410)
- **RHSA-2026:22840** · Red Hat · fixed in: Red Hat Quay 3.10 · released 2026-06-03 · [advisory](https://access.redhat.com/errata/RHSA-2026:22840)
- **RHSA-2026:6720** · Red Hat · fixed in: Red Hat Quay 3.12 · released 2026-04-06 · [advisory](https://access.redhat.com/errata/RHSA-2026:6720)
- **RHSA-2026:6568** · Red Hat · fixed in: Red Hat Quay 3.15 · released 2026-04-03 · [advisory](https://access.redhat.com/errata/RHSA-2026:6568)
- **RHSA-2026:19375** · Red Hat · fixed in: Red Hat Quay 3.16 · released 2026-05-19 · [advisory](https://access.redhat.com/errata/RHSA-2026:19375)
- **RHSA-2026:23361** · Red Hat · fixed in: Red Hat Quay 3.9 · released 2026-06-04 · [advisory](https://access.redhat.com/errata/RHSA-2026:23361)
