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-24772

CVE-2022-24772: Digitalbazaar Forge Signature Forgery

CVE-2022-24772 is a signature forgery vulnerability in Digitalbazaar Forge (node-forge) that allows attackers to forge RSA PKCS#1 v1.5 signatures. This post covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-24772 Overview

CVE-2022-24772 is a signature verification bypass vulnerability in Forge (also known as 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 fails to check for trailing garbage bytes after decoding a DigestInfo ASN.1 structure. This improper verification allows attackers to manipulate padding bytes and inject garbage data to forge valid signatures, particularly when a low public exponent is being used.

Critical Impact

This vulnerability enables signature forgery attacks against applications using node-forge for RSA PKCS#1 v1.5 signature verification, potentially allowing attackers to bypass authentication mechanisms and forge trusted digital signatures.

Affected Products

  • digitalbazaar forge versions prior to 1.3.0
  • Node.js applications utilizing the node-forge package for cryptographic operations
  • Web applications implementing TLS or RSA signature verification with vulnerable forge versions

Discovery Timeline

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

Technical Details for CVE-2022-24772

Vulnerability Analysis

The vulnerability resides in the ASN.1 parsing logic within node-forge's RSA PKCS#1 v1.5 signature verification implementation. When verifying signatures, the library decodes the DigestInfo ASN.1 structure but does not validate that all bytes in the decrypted signature block have been consumed. This oversight allows trailing garbage bytes to exist after the legitimate ASN.1 structure without triggering a verification failure.

The core issue stems from incomplete parsing validation in the asn1.fromDer() function, which did not enforce that all input bytes must be parsed during signature verification operations. An attacker can exploit this by crafting signatures with manipulated padding that still produce valid-looking DigestInfo structures when decrypted.

Root Cause

The root cause is improper cryptographic signature verification (CWE-347). The ASN.1 parsing function asn1.fromDer() lacked a parseAllBytes option to ensure complete consumption of input data during parsing. Without this validation, the signature verification process accepts decrypted signature blocks containing trailing garbage data after the DigestInfo structure, violating the strict format requirements of PKCS#1 v1.5.

Attack Vector

An attacker can exploit this vulnerability over the network without authentication or user interaction. The attack is particularly effective when the target RSA key uses a low public exponent (commonly e=3). By manipulating the padding bytes in a signature and appending calculated garbage data, an attacker can construct a forged signature that passes the incomplete verification checks. This attack is a variant of the classic Bleichenbacher signature forgery attack.

The attack requires:

  1. Knowledge of the message to be signed
  2. Access to the target's public key with a low exponent
  3. Ability to submit forged signatures to the vulnerable application
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

Detection Methods for CVE-2022-24772

Indicators of Compromise

  • Unexpected signature verification successes for malformed or suspicious signatures
  • Authentication logs showing unusual patterns of successful RSA signature-based authentication
  • Application logs containing signatures with non-standard lengths or padding anomalies

Detection Strategies

  • Audit package.json and package-lock.json files for node-forge versions below 1.3.0
  • Implement dependency scanning using tools like npm audit, Snyk, or SentinelOne Singularity Cloud Security
  • Monitor application authentication flows for anomalous signature verification patterns
  • Review code repositories for direct usage of forge.pki.rsa.verify() or related signature verification functions

Monitoring Recommendations

  • Enable verbose logging for all cryptographic signature verification operations
  • Implement alerting for signature verification failures followed by immediate successes from the same source
  • Deploy runtime application security monitoring to detect exploitation attempts
  • Use SentinelOne agents to identify vulnerable node-forge package installations across your infrastructure

How to Mitigate CVE-2022-24772

Immediate Actions Required

  • Upgrade node-forge to version 1.3.0 or later immediately
  • Audit all applications in your environment for vulnerable node-forge versions
  • Review authentication and signature verification logs for potential past exploitation
  • Consider temporarily disabling RSA signature-based authentication using affected systems until patched

Patch Information

The vulnerability has been addressed in node-forge version 1.3.0. The fix introduces a parseAllBytes option to the asn1.fromDer() function, which defaults to true and ensures that all bytes are consumed during ASN.1 parsing. This prevents the acceptance of signatures with trailing garbage data.

Relevant security patches:

  • Primary Fix Commit
  • Additional Update Commit

For detailed information, see the GitHub Security Advisory.

Workarounds

  • No known workarounds are available for this vulnerability; upgrading to version 1.3.0 or later is required
  • If immediate upgrade is not possible, consider temporarily switching to alternative cryptographic libraries for signature verification
  • Implement additional signature validation at the application layer as a defense-in-depth measure
bash
# Upgrade node-forge to patched version
npm update node-forge@^1.3.0

# Verify installed version
npm list node-forge

# Audit for vulnerable packages
npm audit

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.16%

  • 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

  • GitHub Commit Update
  • Related CVEs
  • CVE-2022-24771: Digitalbazaar Forge Signature Forgery Flaw

  • 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