node-forgeのRSA署名検証に脆弱性、署名を偽造されるおそれ
Summary
node-forgeでRSA署名の検証が非正規のBER符号化を受け入れるため、秘密鍵がなくても署名を偽造されるおそれがあります。影響を受けるのは1.4.1より前の版で、1.4.1で修正されています。公開鍵の指数が3のRSA鍵が対象となるため、利用中の鍵と版を確認し、1.4.1以降に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
node-forgeでRSA署名の検証が非正規のBER符号化を受け入れるため、秘密鍵がなくても署名を偽造されるおそれがあります。影響を受けるのは1.4.1より前の版で、1.4.1で修正されています。公開鍵の指数が3のRSA鍵が対象となるため、利用中の鍵と版を確認し、1.4.1以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmnode-forge |
< 1.4.1→ 1.4.1 |
1.4.1 |
| digitalbazaarforge | — | Not listed |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-119192 node-node-forge No fixed version in this record
Original description The description as published by the source.
Forge, also called node-forge, is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, publicKey.verify() with the default RSASSA-PKCS1-V1_5 scheme in lib/rsa.js parses the recovered DigestInfo with the lenient BER parser asn1.fromDer() and validates its structure with digestInfoValidator without requiring canonical DER bytes. Non-minimal or indefinite lengths, malformed parameter values, and non-canonical object identifier encodings with padded subidentifiers or trailing bytes can leave attacker-controlled data inside an accepted DigestInfo. When the verifying RSA public key uses a low exponent such as e=3, an attacker can use that encoding slack to forge a signature without the private key. The same path is used by X.509 certificate and PKCS#7 signature verification. This issue is fixed in version 1.4.1.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com