{"id":"CVE-2024-27317","published":"2024-03-12T18:18:52Z","modified":"2025-02-13T17:46:25Z","title":"Apache Pulsar: Pulsar Functions Worker's Archive Extraction Vulnerability Allows Unauthorized File Modification","vendor":"Apache","product":"Apache Pulsar","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.375,"percentile":0.98887,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://lists.apache.org/thread/ct9xmvlf7lompc1pxvlsb60qstfsm9po","tags":["mailing-list"]},{"url":"https://pulsar.apache.org/security/CVE-2024-27317/","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/03/12/10","tags":[]}],"priority":{"score":25.7,"factors":[{"name":"EPSS percentile","points":19.78},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Pulsar","versions":[">= 2.4.0, < 2.10.6",">= 2.11.0, < 2.11.4",">= 3.0.0, < 3.0.3",">= 3.1.0, < 3.1.3",">= 3.2.0, < 3.2.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-08-05T17:16:55.541030Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.pulsar:pulsar-functions-worker","vulnerableRanges":[">=2.4.0, <2.10.6",">=2.11.0, <2.11.4",">=3.0.0, <3.0.3",">=3.1.0, <3.1.3",">=3.2.0, <3.2.1"],"patched":["2.10.6","2.11.4","3.0.3","3.1.3","3.2.1"],"from":["GHSA-jg2g-4rjg-cmqh"],"provenance":"source"}],"summary":{"text":"A directory traversal flaw in the Functions Worker component of Apache Pulsar (also present in the Pulsar Broker when functionsWorkerEnabled=true) lets crafted jar or nar archives escape the extraction directory because filenames inside the zip are not properly validated. An attacker who has valid credentials and can upload functions over the network, with the attack being hard to reproduce reliably, can create or modify files outside the designated directory and potentially influence system behaviour.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T03:45:36Z"},"euvd":{"id":"EUVD-2024-0948","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-37579","published":"2023-07-12","fixed":"2.11.1","kev":false,"link":{"from":"CVE-2023-37579","to":"CVE-2024-27317","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.pulsar:pulsar-functions-worker","fromFixed":"2.10.4","toFixed":"2.10.6","daysApart":244}]}},{"cve":"CVE-2024-27135","published":"2024-03-12","fixed":"3.2.1","kev":false},{"cve":"CVE-2024-27317","published":"2024-03-12","fixed":"3.2.1","kev":false},{"cve":"CVE-2024-27894","published":"2024-03-12","fixed":"3.2.1","kev":false}],"package":"Maven:org.apache.pulsar:pulsar-functions-worker"}}