# CVE-2026-4598: jsrsasign is vulnerable to DoS through Infinite Loop when processing zero or negative inputs

- Severity: High 8.7 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-23T05:00:11.571Z
- Modified: 2026-09-10T13:20:20.940Z
- Also known as: GHSA-8g7p-jf3g-gxcp
- Weaknesses: CWE-835, CWE-1287
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- jsrsasign: before 11.1.1
- org.webjars.npm:jsrsasign: before *
- migration-toolkit-virtualization/mtv-console-plugin-rhel9: no versions given (not affected: from 1779139872 before *; from 1778927462 before *)
- quay/quay-rhel8: no versions given (not affected: from 1779822261 before *; from 1775253092 before *; from 1775169219 before *; from 1779811473 before *)
- quay/quay-rhel9: no versions given (not affected: from 1779204086 before *)
- jsrsasign (npm): before 11.1.1
- kjur jsrsasign: before 11.1.1

## Every score

- snyk: CVSS:4.0 8.7 High `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`
- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://gist.github.com/Kr0emer/a1bf5cd4547cc630d2dcc5e761de8264> (exploit, mitigation, third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JS-JSRSASIGN-15370938> (third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-15812263> (web)
- <https://github.com/kjur/jsrsasign/pull/648> (issue-tracking, web)
- <https://github.com/kjur/jsrsasign/commit/ca5b027240287a1e71fe63019fc4400332594323> (patch, web)
- <https://access.redhat.com/security/cve/CVE-2026-4598> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2450210> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4598.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:19409> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:19410> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22840> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:6720> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:6568> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:19375> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:23361> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-4598> (advisory)
- <https://github.com/kjur/jsrsasign> (package)

## Sources

- CVE List: [CVE-2026-4598](https://www.cve.org/CVERecord?id=CVE-2026-4598), CVE Terms of Use, modified 2026-09-10
- GitHub Advisory Database: [GHSA-8g7p-jf3g-gxcp](https://github.com/advisories/GHSA-8g7p-jf3g-gxcp), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-4598](https://nvd.nist.gov/vuln/detail/CVE-2026-4598), Public domain, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-4598 · Whole record: https://cve.day/CVE-2026-4598.json · Rebuilt by cve.day 2026-11-25T22:59:16.443Z
