Vulnerability advisory

CVE-2021-3281

Published Updated OSV record ↗

Also known as BIT-django-2021-3281GHSA-fvgf-6h6h-3322PYSEC-2021-9

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/django/django ↗
2a62cdcfec85938f40abb2e9e6a9ff497e02afe8 to before fc0c8cfa492b2d7b82263e71e486f3829ad7c43afc0c8cfa492b2d7b82263e71e486f3829ad7c43a
2a04e24d2dfc8e60a66e4369d970913cb2112d91 to before 81c99e4eb00b58e3eb33f3d5c1747b6c57e9d64981c99e4eb00b58e3eb33f3d5c1747b6c57e9d649
0b8a0296bfd30748f08021834e95cdae241686e8 to before 3235a7b80710e5c90bbb1d25a147c8d0eddc81983235a7b80710e5c90bbb1d25a147c8d0eddc8198

Description

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

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools