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-2024-25180

CVE-2024-25180: Pdfmake RCE Vulnerability

CVE-2024-25180 is a remote code execution flaw in Pdfmake 0.2.9 that allows attackers to execute arbitrary code via the /pdf endpoint. This article covers technical details, affected versions, and mitigation strategies.

Published: April 1, 2026

CVE-2024-25180 Overview

CVE-2024-25180 is a code injection vulnerability discovered in pdfmake version 0.2.9, a popular Node.js library for generating PDF documents. The vulnerability allows remote attackers to execute arbitrary code via specially crafted POST requests to the /pdf endpoint. This endpoint becomes available when the test framework is installed, creating a potential attack surface in development and testing environments.

Note: This CVE is disputed by the vendor, who states that the /pdf endpoint behavior is intentional and only available after installing a test framework that exists outside of the main pdfmake application. The vendor maintains that anyone installing this test framework is responsible for ensuring it is only available to authorized testers.

Critical Impact

Successful exploitation enables remote code execution on systems running the pdfmake test framework, potentially allowing attackers to take complete control of the affected server without authentication.

Affected Products

  • pdfmake version 0.2.9
  • pdfmake_project pdfmake (with test framework installed)
  • Systems exposing the /pdf endpoint to untrusted networks

Discovery Timeline

  • 2024-02-29 - CVE-2024-25180 published to NVD
  • 2025-05-13 - Last updated in NVD database

Technical Details for CVE-2024-25180

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code), commonly known as Code Injection. The core issue stems from the test framework's /pdf endpoint processing user-supplied input without proper sanitization, allowing attackers to inject and execute arbitrary code on the server.

The vulnerability manifests when an attacker sends a malicious POST request containing crafted JavaScript code to the /pdf endpoint. The server-side component processes this input in an unsafe manner, leading to arbitrary code execution with the privileges of the Node.js process.

While the vendor disputes the severity, arguing that the test framework should only be installed in controlled environments, the reality is that misconfigured development or staging environments exposed to the internet could be vulnerable to exploitation.

Root Cause

The root cause is improper input validation and sanitization in the test framework's /pdf endpoint handler. The endpoint appears to evaluate user-controlled input as code, violating the principle of treating all external input as untrusted. This design decision, while potentially convenient for testing purposes, creates a significant security risk when the endpoint is accessible to unauthorized users.

Attack Vector

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

  1. Identifying a pdfmake instance with the test framework installed and the /pdf endpoint exposed
  2. Crafting a malicious POST request containing JavaScript code injection payloads
  3. Sending the request to the /pdf endpoint
  4. Achieving arbitrary code execution on the target server

The vulnerability is exploitable remotely with low attack complexity. Technical details and proof-of-concept information can be found in the GitHub CVE-2024-25180 README and the related GitHub Issue #2702.

Detection Methods for CVE-2024-25180

Indicators of Compromise

  • Unexpected POST requests to the /pdf endpoint from external IP addresses
  • Unusual JavaScript code patterns in request bodies targeting the /pdf endpoint
  • Anomalous process spawning from Node.js processes running pdfmake
  • Suspicious outbound network connections from the application server

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block suspicious POST requests to /pdf endpoints
  • Monitor application logs for unusual request patterns or error messages related to code execution
  • Deploy endpoint detection solutions to identify unauthorized process creation or file system modifications
  • Use network intrusion detection systems (NIDS) to identify exploitation attempts based on known payload patterns

Monitoring Recommendations

  • Enable detailed logging for all requests to the /pdf endpoint
  • Set up alerts for any access to the /pdf endpoint from non-whitelisted IP addresses
  • Monitor Node.js process behavior for signs of code injection exploitation
  • Regularly audit which development/testing endpoints are exposed to external networks

How to Mitigate CVE-2024-25180

Immediate Actions Required

  • Ensure the pdfmake test framework is not installed in production environments
  • Block external access to the /pdf endpoint using firewall rules or network segmentation
  • Review all pdfmake deployments to identify instances where the test framework may be unintentionally exposed
  • Implement strict access controls limiting /pdf endpoint access to authorized internal testers only

Patch Information

As this vulnerability is disputed by the vendor and considered intentional behavior for the test framework, there is no official patch available. Organizations should follow the vendor's guidance of ensuring the test framework is only available to authorized testers. For additional context and discussion, refer to the Snyk Vulnerability Advisory and the GitHub Issue #2702.

Workarounds

  • Remove the test framework entirely from production and staging environments
  • Implement network-level restrictions to ensure the /pdf endpoint is only accessible from trusted internal networks
  • Use authentication middleware to protect the test endpoint if it must remain available
  • Consider deploying test environments in isolated network segments without internet exposure
bash
# Configuration example - Block external access to /pdf endpoint using nginx
location /pdf {
    # Only allow access from internal network
    allow 10.0.0.0/8;
    allow 172.16.0.0/12;
    allow 192.168.0.0/16;
    deny all;
    
    # Or completely disable the endpoint
    # return 403;
}

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPdfmake

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.43%

  • 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-94
  • Technical References
  • GitHub Issue #2702

  • GitHub CVE-2024-25180 README

  • Snyk Vulnerability SNYK-JS-PDFMAKE-6347243

  • YouTube Security Video
  • Related CVEs
  • CVE-2026-26801: pdfmake SSRF 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