# CVE-2024-27317: Apache Pulsar: Pulsar Functions Worker's Archive Extraction Vulnerability Allows Unauthorized File Modification

- Severity: High 8.4 (CVSS:3.1, scored by apache) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 56.9%, higher than 99% of CVEs (2026-12-01)
- Published: 2024-03-12T18:18:52.650Z
- Modified: 2026-06-17T07:19:38.363Z
- Also known as: GHSA-jg2g-4rjg-cmqh
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## Description

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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Pulsar: from 2.4.0 before 2.10.6; from 2.11.0 before 2.11.4; from 3.0.0 before 3.0.3; from 3.1.0 before 3.1.3; from 3.2.0 before 3.2.1
- apache pulsar: from 2.4.0 before 2.10.6; from 2.11.0 before 2.11.4; from 3.0.0 before 3.0.3; from 3.1.0 before 3.1.3; from 3.2.0 before 3.2.1; 3.2.0
- org.apache.pulsar:pulsar-functions-worker (Maven): from 2.4.0 before 2.10.6; from 2.11.0 before 2.11.4; from 3.0.0 before 3.0.3; from 3.1.0 before 3.1.3; from 3.2.0 before 3.2.1

## Every score

- apache: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://lists.apache.org/thread/ct9xmvlf7lompc1pxvlsb60qstfsm9po> (mailing-list, vendor-advisory, web)
- <https://pulsar.apache.org/security/CVE-2024-27317/> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2024/03/12/10> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27317> (advisory)
- <https://github.com/apache/pulsar> (package)
- <https://pulsar.apache.org/security/CVE-2024-27317> (web)

## Sources

- CVE List: [CVE-2024-27317](https://www.cve.org/CVERecord?id=CVE-2024-27317), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-jg2g-4rjg-cmqh](https://github.com/advisories/GHSA-jg2g-4rjg-cmqh), CC-BY-4.0, modified 2025-01-21
- NVD: [CVE-2024-27317](https://nvd.nist.gov/vuln/detail/CVE-2024-27317), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27317 · Whole record: https://cve.day/CVE-2024-27317.json · Rebuilt by cve.day 2026-11-25T22:58:37.471Z
