CVE-2021-45452: Path Traversal

Published Jan 4, 2022
·
Updated

Storage.save in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1 allows directory traversal if crafted filenames are directly passed to it.

Other sources

Storage.save() allowed directory-traversal if directly passed suitably crafted file names.

References:

https://www.djangoproject.com/weblog/2022/jan/04/security-releases/

Red Hat

Affected Software

10 affected componentsFixes available
redhat/Django<4.0.1
4.0.1
redhat/Django<3.2.11
3.2.11
redhat/Django<2.2.26
2.2.26
pip/Django>=4.0<4.0.1
4.0.1
pip/Django>=3.2<3.2.11
3.2.11
pip/Django>=2.2<2.2.26
2.2.26
djangoproject Django>=2.2<2.2.26
djangoproject Django>=3.2<3.2.11
djangoproject Django>=4.0<4.0.1
Fedoraproject Fedora=35

Event History

Jan 4, 2022
CVE Published
via MITRE·11:09 PM
Data Sourced
via MITRE·11:09 PM
Description
Jan 5, 2022
Data Sourced
via NVD·12:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 12, 2022
Advisory Published
via GitHub·07:21 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-45452?

CVE-2021-45452 is a vulnerability in Django versions 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1 that allows directory traversal if crafted filenames are directly passed to the Storage.save function.

2

What is the severity of CVE-2021-45452?

The severity of CVE-2021-45452 is medium with a CVSS score of 5.3.

3

How can I check if my Django version is affected by CVE-2021-45452?

You can check if your Django version is affected by CVE-2021-45452 by comparing the version number with the affected versions: 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1.

4

How do I fix CVE-2021-45452 in Django?

To fix CVE-2021-45452 in Django, you need to update to version 2.2.26, 3.2.11, or 4.0.1, depending on the version you are using.

5

Are there any references for CVE-2021-45452?

Yes, you can find references for CVE-2021-45452 at the following links: [Reference 1](https://www.djangoproject.com/weblog/2022/jan/04/security-releases/), [Reference 2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2037170), [Reference 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2037171).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203