A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI 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-2024-27317

CVE-2024-27317: Apache Pulsar Path Traversal Vulnerability

CVE-2024-27317 is a path traversal vulnerability in Apache Pulsar Functions Worker that lets attackers modify files outside extraction directories. This article covers technical details, affected versions, and upgrade paths.

Published: May 26, 2026

CVE-2024-27317 Overview

CVE-2024-27317 is a directory traversal vulnerability in Apache Pulsar Functions Worker. Authenticated users can upload functions packaged as jar or nar files, which the Functions Worker extracts as zip archives. The worker fails to validate filenames inside the archive, allowing entries containing .. path elements to write files outside the designated extraction directory. The flaw also affects the Pulsar Broker when configured with functionsWorkerEnabled=true. An authenticated attacker can create or overwrite files on the host, influencing system behavior and potentially achieving code execution.

Critical Impact

An authenticated attacker can write arbitrary files outside the extraction directory across the broker host, leading to integrity compromise and possible remote code execution.

Affected Products

  • Apache Pulsar 2.4.0 through 2.10.5
  • Apache Pulsar 2.11.0 through 2.11.3
  • Apache Pulsar 3.0.0 through 3.0.2, 3.1.0 through 3.1.2, and 3.2.0

Discovery Timeline

  • 2024-03-12 - CVE-2024-27317 published to NVD
  • 2025-01-19 - Last updated in NVD database

Technical Details for CVE-2024-27317

Vulnerability Analysis

Apache Pulsar Functions Worker accepts user-uploaded function packages in jar or nar format. Both formats are zip-based archives. During deployment, the worker extracts the archive contents to a working directory on the broker or worker host. The extraction logic iterates over zip entries and writes each entry to disk using the filename declared inside the archive. The worker does not canonicalize the resulting path or verify that it remains within the target extraction directory.

This class of flaw is tracked as [CWE-22] Improper Limitation of a Pathname to a Restricted Directory. The issue extends to the Pulsar Broker process when functionsWorkerEnabled=true, expanding the attack surface to any deployment running an embedded worker.

Root Cause

The root cause is missing validation of zip entry names during archive extraction. Archive entries containing relative path traversal sequences such as ../../etc/cron.d/payload are written verbatim. The extraction routine resolves these traversal sequences against the destination directory, allowing writes to arbitrary filesystem locations writable by the broker process user.

Attack Vector

Exploitation requires an authenticated session with permission to upload Pulsar Functions. The attacker crafts a malicious jar or nar package containing zip entries with names embedding .. segments. The attacker submits the package through the Functions API. When the Functions Worker extracts the archive, the traversal entries place attacker-controlled files outside the function workspace, for example into systemd unit directories, application configuration paths, or executable lookup directories. Subsequent process execution or scheduled tasks invoke the planted files.

No verified public proof-of-concept code is available. Refer to the Apache Pulsar CVE-2024-27317 advisory for technical specifics.

Detection Methods for CVE-2024-27317

Indicators of Compromise

  • Files appearing outside the Functions Worker extraction directory with timestamps matching function deployment events.
  • Unexpected jar or nar uploads in Functions Worker logs from accounts that do not normally deploy functions.
  • New or modified files in sensitive directories such as /etc/, cron paths, or service unit directories owned by the broker process user.

Detection Strategies

  • Inspect Pulsar Functions Worker logs for archive upload events and correlate with filesystem write activity outside expected paths.
  • Run static inspection of stored function archives, listing entries with unzip -l and flagging any name containing ...
  • Audit broker hosts for files created by the Pulsar service account outside the configured functionsDirectory.

Monitoring Recommendations

  • Enable filesystem integrity monitoring on the broker host for system directories and Pulsar configuration paths.
  • Capture and retain Functions API access logs, including the authenticated principal and uploaded package hashes.
  • Alert on Pulsar process file writes outside the designated function workspace directory.

How to Mitigate CVE-2024-27317

Immediate Actions Required

  • Upgrade Apache Pulsar to a patched release immediately: 2.10.6, 2.11.4, 3.0.3, 3.1.3, or 3.2.1 or later.
  • Restrict Pulsar Functions upload permissions to a minimal set of trusted operator accounts.
  • Review broker hosts for files written outside the expected extraction directory and remove any unauthorized artifacts.

Patch Information

Apache published fixes in the following release lines: 2.10.x users should upgrade to at least 2.10.6, 2.11.x to 2.11.4, 3.0.x to 3.0.3, 3.1.x to 3.1.3, and 3.2.x to 3.2.1. Patch details are documented in the Apache Pulsar Security Advisory and the Apache Mailing List Discussion.

Workarounds

  • Disable the embedded Functions Worker on brokers by setting functionsWorkerEnabled=false where functions are not required.
  • Enforce strict authentication and authorization policies so only vetted principals hold the functions permission on namespaces.
  • Run the Pulsar broker and Functions Worker under a dedicated low-privilege user with restricted write access to system directories.
bash
# Configuration example: disable embedded Functions Worker on the broker
# /conf/broker.conf
functionsWorkerEnabled=false

# Or restrict Functions permissions at the namespace level
bin/pulsar-admin namespaces grant-permission public/default \
  --role trusted-deployer \
  --actions functions

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechApache Pulsar

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability1.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • Openwall OSS Security Update
  • Vendor Resources
  • Apache Mailing List Discussion

  • Apache Pulsar CVE-2024-27317 Details
  • Related CVEs
  • CVE-2024-27135: Apache Pulsar RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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