REDHAT-BUG-2295937: Low severity Django Django vulnerability

Published Jul 5, 2024
·
Updated

Derived classes of the django.core.files.storage.Storage base class which override generatefilename() without replicating the file path validations existing in the parent class, allow for potential directory-traversal via certain inputs when calling save(). Built-in Storage sub-classes were not affected by this vulnerability.

Affected versions =================

Django main development branch Django 5.1 Django 5.0 Django 4.2

Affected Software

1 affected component
Django Django<5.0, >=4.2<5.1

Event History

Jul 5, 2024
Data Sourced
via Red Hat·09:58 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2295937?

The severity of REDHAT-BUG-2295937 is classified as high due to its potential for directory traversal vulnerabilities.

2

How do I fix REDHAT-BUG-2295937?

To fix REDHAT-BUG-2295937, ensure that any derived classes of django.core.files.storage.Storage replicate the file path validations from the parent class in their overridden generate_filename() methods.

3

Which versions of Django are affected by REDHAT-BUG-2295937?

Django versions prior to 5.0 and those between 4.2 and 5.1 are affected by REDHAT-BUG-2295937.

4

What can happen if REDHAT-BUG-2295937 is exploited?

If REDHAT-BUG-2295937 is exploited, it may lead to unauthorized access to sensitive files on the server due to directory traversal.

5

What type of applications are at risk for REDHAT-BUG-2295937?

Applications that use custom storage backends in Django and override the generate_filename() method without proper validation are at risk for REDHAT-BUG-2295937.

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