Skip to content
Heist/ feed
Back to feed
MediumFix available

python-django — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-33203

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.

Products
python-django
Affected versions
Not specified
Fixed versions
2:2.2.24-1
CVEs
CVE-2021-33203
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:58 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-33203

core-osv · Original source

Published 8 Jun 2021, 18:15 UTC

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.

osv:DEBIAN-CVE-2021-33203

python-django

Fixed versions: 2:2.2.24-1

python-django

Fixed versions: 2:2.2.24-1

python-django

Fixed versions: 2:2.2.24-1

Complete source record
{
  "id": "50402136e0d4cfa4f351cfa1cc1c58cb727c85d3bf43d658f4d670ba0d85c934",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-33203",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-33203",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2021-33203",
    "products": [
      {
        "name": {
          "value": "python-django",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:2.2.24-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python-django",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:2.2.24-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python-django",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:2.2.24-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2021-33203",
      "aliases": [
        "DEBIAN-CVE-2021-33203"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:2.2.24-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django",
            "purl": "pkg:deb/debian/python-django?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-33203.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:2.2.24-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django",
            "purl": "pkg:deb/debian/python-django?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-33203.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:2.2.24-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django",
            "purl": "pkg:deb/debian/python-django?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-33203.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:59.547858717Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-33203"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-33203"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-33203",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 422872,
  "published_at": "2021-06-08T18:15:08.48+00:00"
}