~ / search / GHSA-fvgf-6h6h-3322

GHSA-fvgf-6h6h-3322

Django Directory Traversal via archive.extract

Source: GitHub Advisory Database (reviewed) Moderate CVE-2021-3281

Packages

EcosystemPackageAffectedFixed in
PyPI Django >= 2.2, < 2.2.18 2.2.18
PyPI Django >= 3.1, < 3.1.6 3.1.6
PyPI Django >= 3.0, < 3.0.12 3.0.12

Details

As written in the advisory (Markdown source, shown as plain text).

In Django 2.2 before 2.2.18, 3.0 before 3.0.12, and 3.1 before 3.1.6, the django.utils.archive.extract method (used by "startapp --template" and "startproject --template") allows directory traversal via an archive with absolute paths or relative paths with dot segments.

References

External links from the advisory. They lead to third-party sites.