{"id":"CVE-2026-33891","published":"2026-03-27T20:43:37Z","modified":"2026-09-04T12:04:56Z","title":"Forge has Denial of Service via Infinite Loop in BigInteger.modInverse() with Zero Input","vendor":"digitalbazaar","product":"forge","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01041,"percentile":0.6328,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"},{"id":"CWE-606","name":"Unchecked Input for Loop Condition"}],"references":[{"url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-5m6q-g25r-mvwx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/digitalbazaar/forge/commit/9bb8d67b99d17e4ebb5fd7596cd699e11f25d023","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-33891","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2452450","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33891.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24761","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24762","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:34342","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:9742","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:13826","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":12.66},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"digitalbazaar","affectedVersions":[{"vendor":"digitalbazaar","product":"forge","versions":["< 1.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-30T15:38:00.562704Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"node-forge","vulnerableRanges":["<1.4.0"],"patched":["1.4.0"],"from":["GHSA-5m6q-g25r-mvwx"],"provenance":"source"}],"summary":{"text":"The flaw is an infinite loop in the BigInteger.modInverse() function of the forge (node-forge) JavaScript TLS library, inherited from its bundled jsbn library, affecting versions prior to 1.4.0. An attacker with network access and no authentication or user interaction, able to get a zero value passed into modInverse(), can cause the process to hang indefinitely at 100% CPU, resulting in denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:38Z"},"euvd":{"id":"EUVD-2026-16833","exploited":false,"provenance":"source"}}