Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-118781— Forge: Denial of Service via infinite loop in BigInteger.modInverse() with negative input (incomplete fix of CVE-2026-33891)

Quick assessment

Affected
digitalbazaar forge
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Forge(也称为 node-forge)是一个用 JavaScript 实现的原生传输层安全(TLS)库。在 1.4.1 版本之前,受影响的实现在处理相关输入或安全决策时,会调用 BigInteger.prototype.modInverse()、bnModInverse()(位于 lib/jsbn.js),并依赖 RSA 公钥指数 e。node-forge 捆绑的 jsbn 实现在 BigInteger.prototype.modInverse() 接收到负值或负模数时会进入无限循环。如果攻击者能够控制传递给密

CVSS 2.9 · Low

Affected Version Matrix 1

VendorProduct Version RangeStatus
digitalbazaar forge < 1.4.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-118781

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Forge: Denial of Service via infinite loop in BigInteger.modInverse() with negative input (incomplete fix of CVE-2026-33891)
Source: CVE Program / CVE List V5
Vulnerability Description
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, the affected implementation used BigInteger.prototype.modInverse(), bnModInverse(), lib/jsbn.js, RSA public exponent e to process the relevant input or security decision. node-forge's bundled jsbn implementation entered an infinite loop when BigInteger.prototype.modInverse() received a negative value or modulus. An attacker who could control the RSA public exponent passed to key generation, or a direct modInverse() operand, could block the Node.js event loop at full CPU. Parsed DER, PEM, JWK, PKCS#12, X.509, and TLS values are unsigned and cannot trigger this issue. This issue is fixed in version 1.4.1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
不可达退出条件的循环(无限循环)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
digitalbazaar forge < 1.4.1 -

II. Public POCs for CVE-2026-118781

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-118781

请登录查看更多情报信息。

Other References for CVE-2026-118781 (3)

Same Patch Batch · digitalbazaar · 2026-10-29 · 15 CVEs total

CVE-2026-118779 7.5 HIGH Forge: Regular expression denial of service in PEM decoding (pem.decode)
CVE-2026-118782 7.5 HIGH Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration count
CVE-2026-119188 7.5 HIGH Forge: Denial of service in TLS record processing via a record interleaved with a fragment
CVE-2026-119191 7.5 HIGH Forge: ASN.1 resource exhaustion via BIT STRING decoding in asn1.fromDer
CVE-2026-119187 7.5 HIGH Forge: Denial of service in TLS record processing via call stack exhaustion
CVE-2026-119190 7.4 HIGH Forge: X.509 basicConstraints bypass in verifyCertificateChain() via deprecated extension
CVE-2026-118778 5.9 MEDIUM Forge: TLS client crash when the server sends no certificate
CVE-2026-119186 5.9 MEDIUM Forge: AES-GCM authentication bypass via unvalidated tagLength option
CVE-2026-119189 5.9 MEDIUM Forge: X.509 pathLenConstraint not enforced by verifyCertificateChain() for CA certificate
CVE-2026-118777 4.8 MEDIUM Forge: Prototype Pollution in forge.http cookie handling via a malicious Set-Cookie
CVE-2026-118774 3.7 LOW Forge: Certificate signature verified with the issuer's RSA signature scheme
CVE-2026-118780 3.7 LOW Forge: verifyCertificateChain() removes trusted CA certificates with the same subject from
CVE-2026-118775 3.7 LOW Forge: ASN.1 OID first arc truncation in asn1.oidToDer
CVE-2026-118776 3.7 LOW Forge: Incomplete PKCS#7 padding validation in AES/DES CBC and ECB decryption

IV. Related Vulnerabilities