Directory Traversal Affecting py3-werkzeug package, versions <3.0.6-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.04% (10th 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 Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-PY3WERKZEUG-8309085
  • published26 Oct 2024
  • disclosed25 Oct 2024

Introduced: 25 Oct 2024

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

How to fix?

Upgrade Chainguard py3-werkzeug to version 3.0.6-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-werkzeug package and not the py3-werkzeug package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

Werkzeug is a Web Server Gateway Interface web application library. On Python < 3.11 on Windows, os.path.isabs() does not catch UNC paths like //server/share. Werkzeug's safe_join() relies on this check, and so can produce a path that is not safe, potentially allowing unintended access to data. Applications using Python >= 3.11, or not using Windows, are not vulnerable. Werkzeug version 3.0.6 contains a patch.

CVSS Base Scores

version 3.1