CVE-2022-24771: Improper Verification of Cryptographic Signature in node-forge

Published Mar 18, 2022
·
Updated

Impact

RSA PKCS#1 v1.5 signature verification code is lenient in checking the digest algorithm structure. This can allow a crafted structure that steals padding bytes and uses unchecked portion of the PKCS#1 encoded message to forge a signature when a low public exponent is being used.

Patches

The issue has been addressed in node-forge 1.3.0.

References

For more information, please see "Bleichenbacher's RSA signature forgery based on implementation error" by Hal Finney.

For more information

If you have any questions or comments about this advisory: Open an issue in forge Email us at example email address

Other sources

A flaw was found in the node-forge package. This signature verification leniency allows an attacker to forge a signature.

Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.3.0, RSA PKCS#1 v1.5 signature verification code is lenient in checking the digest algorithm structure. This can allow a crafted structure that steals padding bytes and uses unchecked portion of the PKCS#1 encoded message to forge a signature when a low public exponent is being used. The issue has been addressed in node-forge version 1.3.0. There are currently no known workarounds.

Affected Software

5 affected componentsFixes available
npm/node-forge<1.3.0
1.3.0
digitalbazaar Forge Node.js<1.3.0
redhat/node-forge<1.3.0
1.3.0
debian/node-node-forge<0.10.0~dfsg-3+deb11u1
0.10.0~dfsg-3+deb11u1
debian/node-node-forge
0.8.1~dfsg-1+deb10u10.10.0~dfsg-3+deb11u11.3.0~dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/node-forge to a version that resolves this vulnerability.

    Fixed in 1.3.0
  2. Upgrade

    Upgrade redhat/node-forge to a version that resolves this vulnerability.

    Fixed in 1.3.0
  3. Upgrade

    Upgrade debian/node-node-forge to a version that resolves this vulnerability.

    Fixed in 0.10.0~dfsg-3+deb11u1
  4. Upgrade

    Upgrade debian/node-node-forge to a version that resolves this vulnerability.

    Fixed in 0.8.1~dfsg-1+deb10u1Fixed in 0.10.0~dfsg-3+deb11u1Fixed in 1.3.0~dfsg-1
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.3.0

Event History

Mar 18, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software
Advisory Published
11:09 PM
Sep 1, 2023
Data Sourced
via Red Hat·03:07 AM
DescriptionSeverityAffected Software
Nov 29, 2023
Advisory Published
12:36 AM
Nov 21, 2024
Data Sourced
via NVD·06:51 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·06:51 AM
RemedyAffected Software
Feb 12, 2025
Data Sourced
via GitHub·05:11 AM
DescriptionSeverityWeaknessAffected Software
Nov 24, 2026
Withdrawn
via OSV·04:28 AM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2022-24771?

CVE-2022-24771 has a severity rating that may lead to serious security implications if exploited due to forgery capabilities.

2

How do I fix CVE-2022-24771?

To fix CVE-2022-24771, upgrade the Digitalbazaar Forge library to version 1.3.0 or later.

3

What software is affected by CVE-2022-24771?

CVE-2022-24771 affects the Digitalbazaar Forge library versions prior to 1.3.0.

4

What does CVE-2022-24771 exploit?

CVE-2022-24771 exploits leniency in digest algorithm structure checks during RSA PKCS#1 v1.5 signature verification.

5

Is CVE-2022-24771 a remote vulnerability?

CVE-2022-24771 is considered a local vulnerability that could be exploited in scenarios where the affected library is used.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203