Loading...
Skip to main content

CVE-2024-27317 — Vulnerability in...

CRITICAL

Apache Pulsar: Pulsar Functions Worker's Archive Extraction Vulnerability Allows Unauthorized File Modification

Published March 12, 2024Updated January 21, 2025Source: osv

Summary

In Pulsar Functions Worker, authenticated users can upload functions in jar or nar files. These files, essentially zip files, are extracted by the Functions Worker. However, if a malicious file is uploaded, it could exploit a directory traversal vulnerability. This occurs when the filenames in the zip files, which aren't properly validated, contain special elements like "..", altering the directory path. This could allow an attacker to create or modify files outside of the designated extraction directory, potentially influencing system behavior. This vulnerability also applies to the Pulsar Broker when it is configured with "functionsWorkerEnabled=true". This issue affects Apache Pulsar versions from 2.4.0 to 2.10.5, from 2.11.0 to 2.11.3, from 3.0.0 to 3.0.2, from 3.1.0 to 3.1.2, and 3.2.0. 2.10 Pulsar Function Worker users should upgrade to at least 2.10.6. 2.11 Pulsar Function Worker users should upgrade to at least 2.11.4. 3.0 Pulsar Function Worker users should upgrade to at least 3.0.3. 3.1 Pulsar Function Worker users should upgrade to at least 3.1.3. 3.2 Pulsar Function Worker users should upgrade to at least 3.2.1. Users operating versions prior to those listed above should upgrade to the aforementioned patched versions or newer versions.

Advisory Timeline

  • First published March 12, 2024 (944 days ago).
  • Last revised January 21, 2025 — 315 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.pulsar:pulsar-functions-worker to 3.2.1 or later
<!-- Update pom.xml dependency version to 3.2.1 for org.apache.pulsar:pulsar-functions-worker -->
Maven
Update org.apache.pulsar:pulsar-functions-worker to 2.10.6 or later
<!-- Update pom.xml dependency version to 2.10.6 for org.apache.pulsar:pulsar-functions-worker -->
Maven
Update org.apache.pulsar:pulsar-functions-worker to 3.0.3 or later
<!-- Update pom.xml dependency version to 3.0.3 for org.apache.pulsar:pulsar-functions-worker -->
Maven
Update org.apache.pulsar:pulsar-functions-worker to 3.1.3 or later
<!-- Update pom.xml dependency version to 3.1.3 for org.apache.pulsar:pulsar-functions-worker -->
Maven
Update org.apache.pulsar:pulsar-functions-worker to 2.11.4 or later
<!-- Update pom.xml dependency version to 2.11.4 for org.apache.pulsar:pulsar-functions-worker -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.apache.pulsar:pulsar-functions-worker
maven
3.2.03.2.1
org.apache.pulsar:pulsar-functions-worker
maven
2.10.0, 2.10.1, 2.10.2, 2.10.3 (+30 more)2.10.6
org.apache.pulsar:pulsar-functions-worker
maven
3.0.0, 3.0.1, 3.0.23.0.3
org.apache.pulsar:pulsar-functions-worker
maven
3.1.0, 3.1.1, 3.1.23.1.3
org.apache.pulsar:pulsar-functions-worker
maven
2.11.0, 2.11.1, 2.11.2, 2.11.32.11.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2024-27317?
Apache Pulsar: Pulsar Functions Worker's Archive Extraction Vulnerability Allows Unauthorized File Modification This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
How do I check if my project is affected by CVE-2024-27317?
CVE-2024-27317 affects org.apache.pulsar:pulsar-functions-worker. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-27317 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-jg2g-4rjg-cmqh

Related CVEs

  • CVE-2026-107726
    CRITICAL

    Hazelcast allows arbitrary member memory access by low-privileged client

  • CVE-2023-30429
    CRITICAL

    Apache Pulsar Incorrect Authorization vulnerability

  • CVE-2026-107282
    CRITICAL

    AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host

  • CVE-2024-27894
    HIGH

    Apache Pulsar: Pulsar Functions Worker Allows Unauthorized File Access and Unauthorized HTTP/HTTPS Proxying

  • CVE-2024-27135
    HIGH

    Apache Pulsar: Improper Input Validation in Pulsar Function Worker allows Remote Code Execution

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies