Skip to content
High 7.5

Forge(node-forge)のPKCS#12で認証を回避される脆弱性

CVE-2026-118782 First seen on SecPulse

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

PackageAffected → Fixed
digitalbazaarforge —
npmnode-forge
< 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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details