Forge: RSA multi-prime private keys are read as two-prime keys, and signatures leak a factor of the modulus

State
Published
Severity
3.7 Low
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

Forge, also called node-forge, is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.4, pki.privateKeyFromPem() and pki.privateKeyFromAsn1() ignore the RSAPrivateKey version and otherPrimeInfos fields and interpret a multi-prime RSA private key as a two-prime key. Signing then uses CRT values for only the first two primes, producing an invalid signature from which an observer can recover a factor of the modulus and reduce the effective strength of the key; two-prime keys are not affected. This issue is fixed in 1.4.4.

ProductVersions
forge digitalbazaar< 1.4.4 Affected

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-325 Missing Cryptographic Step

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.