Vulnerability advisory

CVE-2021-33203

Published Updated OSV record ↗

Also known as BIT-django-2021-33203GHSA-68w8-qjq3-2gfmPYSEC-2021-98

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

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/django/django ↗
All commits before 2da029d8540ab0b2e9edcba25c4d46c52853197f2da029d8540ab0b2e9edcba25c4d46c52853197f
Not specified625d3c1c643b0eb5c84339415ca0ba9f1728efa2
Not specified843c34b3ab921c1acf77ee2014a97bc7975595b8
Also listed as affected (56)
  • 2.2.23
  • 3.1.11
  • 3.2.3
  • 2.2.22
  • 3.1.10
  • 3.2.2
  • 3.2.1
  • 3.1.9
  • 2.2.21
  • 3.2
  • 2.2.20
  • 3.1.8
  • 3.2rc1
  • 3.2b1
  • 2.2.19
  • 3.1.7
  • 2.2.18
  • 3.1.6
  • 3.2a1
  • 3.1.5
  • 3.1.4
  • 3.1.3
  • 2.2.17
  • 3.1.2
  • 2.2.16
  • 3.1.1
  • 3.1
  • 2.2.15
  • 3.1rc1
  • 2.2.14
  • 3.1b1
  • 2.2.13
  • 3.1a1
  • 2.2.12
  • 2.2.11
  • 2.2.10
  • 2.2.9
  • 2.2.8
  • 2.2.7
  • 2.2.6
  • 2.2.5
  • 2.2.4
  • 2.2.3
  • 2.2.2
  • 2.2.1
  • 2.2
  • 2.2rc1
  • 2.2b1
  • 2.2a1
  • 1.7a2
  • 1.4
  • 1.3
  • 1.2.1
  • 1.2
  • 1.1
  • 1.0

Description

Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory traversal via django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of arbitrary files. Additionally, if (and only if) the default admindocs templates have been customized by application developers to also show file contents, then not only the existence but also the file contents would have been exposed. In other words, there is directory traversal outside of the template root directories.

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