Forge(node-forge)のPKCS#12で認証を回避される脆弱性
Summary
JavaScript向けのTLS実装であるForge(node-forge)に、PKCS#12の反復回数をゼロ以下で受け付けてしまう脆弱性が見つかりました。細工されたPKCS#12を処理すると、パスワードによる完全性チェックを回避されるおそれがあります。1.4.1より前のバージョンが対象で、修正版は1.4.1です。PKCS#12を扱うプロジェクトでは、Forgeを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.
JavaScript向けのTLS実装であるForge(node-forge)に、PKCS#12の反復回数をゼロ以下で受け付けてしまう脆弱性が見つかりました。細工されたPKCS#12を処理すると、パスワードによる完全性チェックを回避されるおそれがあります。1.4.1より前のバージョンが対象で、修正版は1.4.1です。PKCS#12を扱うプロジェクトでは、Forgeを1.4.1以上に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| digitalbazaarforge | — | Not listed |
| npmnode-forge |
< 1.4.1→ 1.4.1 |
1.4.1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-118782 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, node-forge accepted a PKCS#12 MAC or PKCS#12 password-based encryption iteration count of zero or less. pki.pbe.generatePkcs12Key() then returned a constant key independent of the password and salt, allowing crafted PKCS#12 input processed by forge.pkcs12.pkcs12FromAsn1() to bypass password-based integrity checks. Predictable encryption keys and IVs also affected PKCS#12 PBE using pbeWithSHAAnd3-KeyTripleDES-CBC or pbewithSHAAnd40BitRC2-CBC, including shrouded key bags, encrypted SafeContents, and PKCS#8 ENCRYPTED PRIVATE KEY input processed independently by forge.pki.decryptPrivateKeyInfo(). PBES2/PBKDF2-encrypted content is unaffected. This issue is fixed in version 1.4.1.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com