Vulnerability advisory

CVE-2021-31542

Published Updated OSV record ↗

Also known as BIT-django-2021-31542GHSA-rxjp-mfm9-w4wrPYSEC-2021-7

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

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/django/django ↗
2a62cdcfec85938f40abb2e9e6a9ff497e02afe8 to before ff1385ae45d267f455b1744fb39a9ab5de688d05ff1385ae45d267f455b1744fb39a9ab5de688d05
0b8a0296bfd30748f08021834e95cdae241686e8 to before 8284fd67b4310131d7230b8f475b6882787d1d428284fd67b4310131d7230b8f475b6882787d1d42
3591e1c1acbd7c13174275367c3fdf012cb0413b to before c238ec5e90fa2053a24c9c860abeaf35eadb68d6c238ec5e90fa2053a24c9c860abeaf35eadb68d6
Not specified04ac1624bdc2fa737188401757cf95ced122d26d
Not specified25d84d64122c15050a0ee739e859f22ddab5ac48
Not specifiedc98f446c188596d4ba6de71d1b77b4a6c5c2a007

Description

In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversal via uploaded files with suitably crafted file names.

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