cvelo
P4 · InfoCVSS 3.7EPSS 0.4%

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

  • CVE-2026-140099
  • GHSA-w73w-hhm4-q25p
  • EUVD-2026-139789

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • digitalbazaar forge

    Affected versionsFixed in
    < 1.4.4none stated
  • node-forgenpm

    Affected versionsFixed in
    up to 1.4.3none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.