Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') Affecting org.apache.pulsar:pulsar-functions-worker package, 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)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHEPULSAR-6427212
  • published13 Mar 2024
  • disclosed12 Mar 2024
  • creditUnknown

Introduced: 12 Mar 2024

CVE-2024-27317  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade org.apache.pulsar:pulsar-functions-worker to version 2.10.6, 2.11.4, 3.0.3, 3.1.3, 3.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') due to improper validation of filenames in uploaded jar or nar files, which are essentially zip files. An attacker can create or modify files outside of the designated extraction directory, potentially influencing system behavior by uploading a malicious file that exploits directory traversal with special elements like .. in the filenames.

Note: This vulnerability also applies to the Pulsar Broker when it is configured with "functionsWorkerEnabled=true".

CVSS Scores

version 3.1