The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-24771

CVE-2022-24771: Digitalbazaar Forge Signature Forgery Flaw

CVE-2022-24771 is a signature forgery vulnerability in Digitalbazaar Forge (node-forge) affecting RSA PKCS#1 v1.5 verification. This article covers the technical details, affected versions, and mitigation strategies.

Published: February 17, 2026

CVE-2022-24771 Overview

CVE-2022-24771 is a cryptographic signature verification vulnerability in Forge (also called node-forge), a native JavaScript implementation of Transport Layer Security (TLS). Prior to version 1.3.0, the RSA PKCS#1 v1.5 signature verification code exhibits lenient behavior when checking the digest algorithm structure. This weakness allows attackers to craft malicious structures that steal padding bytes and leverage unchecked portions of the PKCS#1 encoded message to forge signatures, particularly when a low public exponent is being used.

Critical Impact

Successful exploitation enables signature forgery attacks, potentially allowing attackers to bypass authentication mechanisms, impersonate trusted entities, or tamper with cryptographically signed data in applications relying on node-forge for RSA signature verification.

Affected Products

  • Digitalbazaar Forge versions prior to 1.3.0
  • Node.js applications using vulnerable node-forge packages
  • Applications implementing RSA PKCS#1 v1.5 signature verification via forge

Discovery Timeline

  • 2022-03-18 - CVE-2022-24771 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-24771

Vulnerability Analysis

This vulnerability stems from improper validation during RSA PKCS#1 v1.5 signature verification in the node-forge library. The signature verification process fails to strictly parse and validate the ASN.1-encoded DigestInfo structure, which contains the hash algorithm identifier and the message digest. This lenient parsing allows attackers to manipulate the padding bytes and exploit unchecked regions within the PKCS#1 encoded message.

The attack is particularly effective when RSA keys use low public exponents (commonly e=3), as the mathematical properties make it easier to construct forged signatures that pass the flawed verification. This is a variant of the Bleichenbacher signature forgery attack, which has historically affected multiple implementations of PKCS#1 v1.5.

Root Cause

The root cause is improper cryptographic signature verification (CWE-347) in the ASN.1 parsing and signature verification routines. Specifically, the library did not enforce strict parsing of all bytes in the PKCS#1 encoded message structure, allowing trailing garbage bytes and malformed structures to be accepted as valid. The ASN.1 decoder lacked a parseAllBytes option to ensure complete validation of the input data.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying an application using a vulnerable version of node-forge for RSA signature verification
  2. Crafting a specially structured PKCS#1 v1.5 encoded message with manipulated padding
  3. Creating a forged signature that exploits the lenient ASN.1 parsing
  4. Submitting the forged signature to bypass cryptographic verification

The following code shows the security patch that addresses this vulnerability by adding strict byte parsing:

javascript
  * @param [options] object with options or boolean strict flag
  *          [strict] true to be strict when checking value lengths, false to
  *            allow truncated values (default: true).
+ *          [parseAllBytes] true to ensure all bytes are parsed
+ *            (default: true)
  *          [decodeBitStrings] true to attempt to decode the content of
  *            BIT STRINGs (not OCTET STRINGs) using strict mode. Note that
  *            without schema support to understand the data context this can
  *            erroneously decode values that happen to be valid ASN.1. This
  *            flag will be deprecated or removed as soon as schema support is
  *            available. (default: true)
  *
+ * @throws Will throw an error for various malformed input conditions.
+ *
  * @return the parsed asn1 object.
  */
 asn1.fromDer = function(bytes, options) {
   if(options === undefined) {
     options = {
       strict: true,
+      parseAllBytes: true,
       decodeBitStrings: true
     };
   }
   if(typeof options === 'boolean') {
     options = {
       strict: options,
+      parseAllBytes: true,
       decodeBitStrings: true
     };

Source: GitHub Commit Change

Additional OID registration was added to properly handle hash algorithms:

javascript
 _IN('2.16.840.1.101.3.4.2.1', 'sha256');
 _IN('2.16.840.1.101.3.4.2.2', 'sha384');
 _IN('2.16.840.1.101.3.4.2.3', 'sha512');
+_IN('1.2.840.113549.2.2', 'md2');
 _IN('1.2.840.113549.2.5', 'md5');

 // pkcs#7 content types

Source: GitHub Commit Change

Detection Methods for CVE-2022-24771

Indicators of Compromise

  • Unexpected authentication successes with malformed or suspicious certificate signatures
  • Anomalous signature verification attempts with unusual padding patterns in PKCS#1 structures
  • Log entries indicating acceptance of signatures that should have been rejected
  • Unusual certificate or token validation patterns in application logs

Detection Strategies

  • Audit Node.js application dependencies using npm audit or yarn audit to identify vulnerable node-forge versions
  • Implement Software Composition Analysis (SCA) tools to continuously monitor for vulnerable packages
  • Review application logs for signature verification anomalies or unexpected authentication patterns
  • Deploy runtime application monitoring to detect unusual cryptographic operation patterns

Monitoring Recommendations

  • Configure dependency scanning in CI/CD pipelines to block deployments with vulnerable node-forge versions
  • Enable verbose logging for cryptographic operations to capture signature verification details
  • Monitor for security advisories from the node-forge project and npm security feeds
  • Implement alerting on unexpected signature verification failures or successes in production environments

How to Mitigate CVE-2022-24771

Immediate Actions Required

  • Upgrade node-forge to version 1.3.0 or later immediately
  • Audit all applications and dependencies for usage of vulnerable node-forge versions
  • Review authentication and signature verification logs for potential exploitation attempts
  • Consider temporary service restrictions if immediate patching is not possible

Patch Information

The vulnerability has been addressed in node-forge version 1.3.0. The fix introduces a parseAllBytes option in the ASN.1 decoder that defaults to true, ensuring all bytes in the encoded message are strictly validated. Additionally, the patch adds proper error throwing for malformed input conditions.

Update instructions:

bash
npm update node-forge
# or
yarn upgrade node-forge

Verify the installed version:

bash
npm list node-forge

For detailed patch information, see the GitHub Security Advisory.

Workarounds

  • There are currently no known workarounds for this vulnerability according to the vendor advisory
  • The only effective mitigation is upgrading to version 1.3.0 or later
  • Consider implementing additional signature validation layers at the application level as defense-in-depth
  • If upgrading is not immediately possible, evaluate restricting RSA key configurations to avoid low public exponents
bash
# Configuration example
# Verify and update node-forge in package.json
npm install node-forge@^1.3.0 --save

# Run security audit to confirm remediation
npm audit --audit-level=high

# Lock dependencies to prevent regression
npm shrinkwrap

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechDigitalbazaar Forge

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-347
  • Technical References
  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Commit Change
  • Related CVEs
  • CVE-2022-24772: Digitalbazaar Forge Signature Forgery

  • CVE-2022-0122: Digitalbazaar Forge URL Redirection Flaw

  • CVE-2025-12816: Digitalbazaar Forge Auth Bypass Vulnerability

  • CVE-2025-66031: Digitalbazaar Forge DoS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English