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
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-29622

CVE-2022-29622: Formidable File Upload RCE Vulnerability

CVE-2022-29622 is a remote code execution vulnerability in Formidable v3.1.4 that allows attackers to execute arbitrary code through crafted filenames. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-29622 Overview

CVE-2022-29622 is an arbitrary file upload vulnerability affecting Formidable v3.1.4, a popular Node.js library used for parsing form data, especially file uploads. This vulnerability allows attackers to execute arbitrary code via a crafted filename, potentially leading to complete system compromise.

It is important to note that this vulnerability is disputed by some third parties. The Formidable project argues that uploading arbitrary files is the intended behavior for common use cases, and configuration options exist in all versions to change the default file handling behavior. Additionally, Strapi has stated they do not consider this a valid vulnerability.

Critical Impact

Attackers can upload malicious files with crafted filenames to achieve arbitrary code execution on vulnerable Node.js applications using Formidable v3.1.4, potentially leading to complete server compromise.

Affected Products

  • Formidable v3.1.4 for Node.js
  • Applications using Formidable v3.1.4 with default file upload configurations
  • Node.js web applications implementing file upload functionality via Formidable

Discovery Timeline

  • 2022-05-16 - CVE-2022-29622 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-29622

Vulnerability Analysis

This vulnerability falls under CWE-434 (Unrestricted Upload of File with Dangerous Type), a classification indicating insufficient validation of file uploads. The core issue stems from Formidable's default handling of uploaded files, where the library does not adequately validate or sanitize filenames provided by users.

When an attacker uploads a file with a specially crafted filename, the library processes it without proper validation, potentially allowing the file to be written to unintended locations or executed by the server. This is particularly dangerous in web application contexts where uploaded files may be served or processed by backend systems.

The network-accessible nature of this vulnerability means it can be exploited remotely without requiring authentication or user interaction. Successful exploitation could result in unauthorized code execution, data exfiltration, or complete server takeover.

Root Cause

The root cause of CVE-2022-29622 lies in Formidable's default file upload handling mechanism. By design, Formidable processes uploaded files without enforcing strict filename validation or file type restrictions. While this permissive approach offers flexibility for various use cases, it creates a security risk when developers rely on default configurations without implementing additional validation layers.

The library's assumption that developers will implement their own validation and security controls conflicts with secure-by-default principles, leading to potential exploitation when applications use Formidable without proper hardening.

Attack Vector

The attack is executed over the network against web applications using vulnerable versions of Formidable. An attacker can craft a malicious HTTP multipart form request containing a file with a specially designed filename. When the application processes this upload using Formidable's default configuration, the malicious file is saved without proper sanitization.

Exploitation scenarios include:

  1. Uploading executable scripts (e.g., .js, .php) with path traversal sequences in the filename
  2. Overwriting critical application files through directory traversal
  3. Placing web shells in publicly accessible directories for remote code execution

For detailed technical analysis and proof-of-concept discussions, refer to the GitHub Issue #856 and GitHub Issue #862 on the Formidable repository.

Detection Methods for CVE-2022-29622

Indicators of Compromise

  • Unusual file uploads with suspicious filenames containing path traversal sequences (../, ..\\)
  • Newly created executable files in web-accessible directories
  • Unexpected script files with extensions like .js, .sh, or .php in upload directories
  • Web server logs showing multipart form submissions with anomalous filename patterns

Detection Strategies

  • Monitor file system activity for newly created files in upload directories and web-accessible paths
  • Implement web application firewall (WAF) rules to detect path traversal patterns in multipart form data
  • Audit application dependencies to identify usage of Formidable v3.1.4 using tools like npm audit or Snyk
  • Review Node.js application logs for file upload operations with suspicious filename characteristics

Monitoring Recommendations

  • Enable detailed logging for all file upload operations including filename, file type, and destination path
  • Configure real-time alerting for file creation events in sensitive directories
  • Implement integrity monitoring on web application directories to detect unauthorized file modifications
  • Deploy endpoint detection and response (EDR) solutions to identify post-exploitation activity

How to Mitigate CVE-2022-29622

Immediate Actions Required

  • Review all applications using Formidable and implement explicit filename sanitization before file storage
  • Configure Formidable's filter option to restrict allowed file types
  • Use the filename option to generate safe, randomized filenames for uploaded files
  • Implement server-side validation to reject files with suspicious filename patterns

Patch Information

This vulnerability is disputed, and no specific patch has been released to address it. The Formidable maintainers recommend using configuration options available in all versions to control file handling behavior. Developers should:

  1. Review the GitHub Issue #856 for the maintainers' position on this issue
  2. Implement custom file handling using Formidable's extensive configuration options
  3. Consider upgrading to the latest version of Formidable which includes additional configuration controls

For context on how this affects downstream projects, see the Strapi GitHub Issue #20189.

Workarounds

  • Implement a custom filename sanitization function that removes path traversal characters and dangerous extensions
  • Store uploaded files outside the web root directory to prevent direct execution
  • Use Formidable's options.filter to validate file types before processing
  • Generate unique, random filenames for all uploads using options.filename callback
  • Implement file type verification based on file content (magic bytes) rather than extensions
bash
# Configuration example - Check for vulnerable Formidable version in your Node.js projects
npm list formidable | grep -E "formidable@3\.1\.4"

# Audit dependencies for known vulnerabilities
npm audit

# Update to latest Formidable version with additional security configurations
npm update formidable

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechFormidable

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability24.46%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-434
  • Technical References
  • GitHub Issue #856

  • GitHub Issue #862

  • GitHub Issue #20189

  • Medium Article on Cybersecurity

  • YouTube Video on Security
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE Vulnerability
Default Legacy - Prefooter | 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