Vulnerability CVE-2021-33203: Information

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.

Severity: MEDIUM (4.9) Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Published: June 8, 2021
Modified: Nov. 7, 2023
Error type identifier: CWE-22

Fixed packages

Package name
Branch
Fixed in version
Version from repository
Errata ID
Task #
State
python3-module-djangosisyphus2.2.24-alt14.2.13-alt1ALT-PU-2021-2228-1278798Fixed
python3-module-djangop102.2.24-alt13.2.25-alt1ALT-PU-2021-2228-1278798Fixed
python3-module-djangop92.2.25-alt12.2.25-alt1ALT-PU-2021-3619-1292358Fixed
python3-module-djangop9_e2k2.2.25-alt12.2.25-alt1ALT-PU-2022-3862-1-Fixed
python3-module-djangoc10f12.2.24-alt13.2.25-alt1ALT-PU-2021-2228-1278798Fixed

References to Advisories, Solutions, and Tools

    1. Configuration 1

      cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
      Start including
      3.2.0
      End excliding
      3.2.4

      cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
      Start including
      3.0.0
      End excliding
      3.1.12

      cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
      End excliding
      2.2.24

      Configuration 2

      cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*