Bug 2295937 (CVE-2024-39330) - CVE-2024-39330 python-django: Potential directory-traversal in django.core.files.storage.Storage.save()
Summary: CVE-2024-39330 python-django: Potential directory-traversal in django.core.fi...
Keywords:
Status: NEW
Alias: CVE-2024-39330
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2296441 2296442 2296444 2296445 2296447 2296443 2296449
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-05 09:58 UTC by TEJ RATHI
Modified: 2024-11-05 17:24 UTC (History)
44 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in Python-Django in the Derived classes of the django.core.files.storage.Storage base class that overrides the generate_filename() without replicating the file path validations existing in the parent class. This flaw allows potential directory traversal via certain inputs when calling save(). Built-in Storage sub-classes were not affected by this vulnerability.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:6428 0 None None None 2024-09-05 14:09:56 UTC
Red Hat Product Errata RHSA-2024:8906 0 None None None 2024-11-05 17:24:57 UTC

Description TEJ RATHI 2024-07-05 09:58:22 UTC
Derived classes of the django.core.files.storage.Storage base class which override generate_filename() 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

Comment 2 errata-xmlrpc 2024-09-05 14:09:54 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 9
  Red Hat Ansible Automation Platform 2.4 for RHEL 8

Via RHSA-2024:6428 https://access.redhat.com/errata/RHSA-2024:6428

Comment 3 errata-xmlrpc 2024-11-05 17:24:55 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.16 for RHEL 8
  Red Hat Satellite 6.16 for RHEL 9

Via RHSA-2024:8906 https://access.redhat.com/errata/RHSA-2024:8906


Note You need to log in before you can comment on or make changes to this bug.