{"cve":"CVE-2024-27317","nvd":{"published":"2024-03-12T19:15:47.777","modified":"2026-06-17T07:19:38.363","status":"Analyzed","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\".\n\nThis 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. \n\n2.10 Pulsar Function Worker users should upgrade to at least 2.10.6.\n2.11 Pulsar Function Worker users should upgrade to at least 2.11.4.\n3.0 Pulsar Function Worker users should upgrade to at least 3.0.3.\n3.1 Pulsar Function Worker users should upgrade to at least 3.1.3.\n3.2 Pulsar Function Worker users should upgrade to at least 3.2.1.\n\nUsers operating versions prior to those listed above should upgrade to the aforementioned patched versions or newer versions.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9},"cwes":["CWE-22"],"references":["http://www.openwall.com/lists/oss-security/2024/03/12/10","https://lists.apache.org/thread/ct9xmvlf7lompc1pxvlsb60qstfsm9po","https://pulsar.apache.org/security/CVE-2024-27317/","http://www.openwall.com/lists/oss-security/2024/03/12/10","https://lists.apache.org/thread/ct9xmvlf7lompc1pxvlsb60qstfsm9po"],"products":["apache:pulsar"],"source":"nvd","synced_at":"2026-10-19T21:46:54.846886191+00:00"},"epss":{"cve":"CVE-2024-27317","score":0.56934,"percentile":0.99068,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-jg2g-4rjg-cmqh","url":"https://osv.dev/vulnerability/GHSA-jg2g-4rjg-cmqh","summary":"Apache Pulsar: Pulsar Functions Worker's Archive Extraction Vulnerability Allows Unauthorized File Modification","modified":"2025-01-21T18:36:23.652490Z","packages":[{"ecosystem":"Maven","name":"org.apache.pulsar:pulsar-functions-worker","purl":"pkg:maven/org.apache.pulsar/pulsar-functions-worker","ranges":[">=2.4.0 <2.10.6"],"fixed":["2.10.6"]},{"ecosystem":"Maven","name":"org.apache.pulsar:pulsar-functions-worker","purl":"pkg:maven/org.apache.pulsar/pulsar-functions-worker","ranges":[">=2.11.0 <2.11.4"],"fixed":["2.11.4"]},{"ecosystem":"Maven","name":"org.apache.pulsar:pulsar-functions-worker","purl":"pkg:maven/org.apache.pulsar/pulsar-functions-worker","ranges":[">=3.0.0 <3.0.3"],"fixed":["3.0.3"]},{"ecosystem":"Maven","name":"org.apache.pulsar:pulsar-functions-worker","purl":"pkg:maven/org.apache.pulsar/pulsar-functions-worker","ranges":[">=3.1.0 <3.1.3"],"fixed":["3.1.3"]},{"ecosystem":"Maven","name":"org.apache.pulsar:pulsar-functions-worker","purl":"pkg:maven/org.apache.pulsar/pulsar-functions-worker","ranges":[">=3.2.0 <3.2.1"],"fixed":["3.2.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}