# CVE-2026-33891: Forge has Denial of Service via Infinite Loop in BigInteger.modInverse() with Zero Input

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.68%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-26T21:57:48.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-5m6q-g25r-mvwx
- Weaknesses: CWE-606, CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.4.0, a Denial of Service (DoS) vulnerability exists in the node-forge library due to an infinite loop in the BigInteger.modInverse() function (inherited from the bundled jsbn library). When modInverse() is called with a zero value as input, the internal Extended Euclidean Algorithm enters an unreachable exit condition, causing the process to hang indefinitely and consume 100% CPU. Version 1.4.0 patches the issue.

(As written by CVE List.)

## Affected

- digitalbazaar forge: < 1.4.0; up to 1.3.3
- automation-gateway: no versions given (not affected: from 0:2.5.20260422-3.el8ap before *; from 0:2.5.20260422-3.el9ap before *)
- automation-platform-ui: no versions given (not affected: from 0:2.6.9-1.el9ap before *)
- cluster-observability-operator/logging-console-plugin-pf4-rhel9: no versions given (not affected: from 1782839279 before *)
- rhdh/rhdh-hub-rhel9: no versions given (not affected: from 1776784286 before *; from 1777903262 before *)
- io.cryostat-cryostat: no versions given
- openshift-logging/elasticsearch6-rhel9: no versions given
- openshift-logging/elasticsearch-operator-bundle: no versions given
- openshift-logging/elasticsearch-proxy-rhel9: no versions given
- openshift-logging/elasticsearch-rhel9-operator: no versions given
- openshift-logging/kibana6-rhel8: no versions given
- openshift-logging/logging-curator5-rhel9: no versions given
- automation-eda-controller: no versions given
- io.hawt-project: no versions given
- io.apicurio-apicurio-registry: no versions given
- podman-desktop-macos-1-0: no versions given
- podman-desktop-windows-1-0: no versions given
- org.infinispan-infinispan-console: no versions given
- grafana: no versions given
- pcs: no versions given
- io.apicurio-apicurito: no versions given
- io.syndesis-syndesis-parent: no versions given
- org.uberfire-uberfire-parent: no versions given
- quay/quay-rhel8: no versions given
- node-forge (npm): before 1.4.0

## Every score

- GitHub_M: 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`
- 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`

## References

- <https://github.com/digitalbazaar/forge/security/advisories/GHSA-5m6q-g25r-mvwx> (exploit, vendor-advisory, web)
- <https://github.com/digitalbazaar/forge/commit/9bb8d67b99d17e4ebb5fd7596cd699e11f25d023> (patch, web)
- <https://access.redhat.com/security/cve/CVE-2026-33891> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2452450> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33891.json>
- <https://access.redhat.com/errata/RHSA-2026:24761> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:24762> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:34342> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:9742> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:13826> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33891> (advisory)
- <https://github.com/digitalbazaar/forge> (package)

## Sources

- CVE List: [CVE-2026-33891](https://www.cve.org/CVERecord?id=CVE-2026-33891), CVE Terms of Use, modified 2026-09-04
- GitHub Advisory Database: [GHSA-5m6q-g25r-mvwx](https://github.com/advisories/GHSA-5m6q-g25r-mvwx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33891](https://nvd.nist.gov/vuln/detail/CVE-2026-33891), Public domain, modified 2026-10-26

---

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