Django up to 4.2.13/5.0.6 generate_filename path traversal
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.3 | $0-$5k | 0.00 |
Summary
A vulnerability classified as critical was found in Django up to 4.2.13/5.0.6. Impacted is the function generate_filename. Executing a manipulation can lead to path traversal.
This vulnerability is tracked as CVE-2024-39330. No exploit exists.
Upgrading the affected component is advised.
Details
A vulnerability has been found in Django up to 4.2.13/5.0.6 and classified as critical. This vulnerability affects the function generate_filename. The manipulation with an unknown input leads to a path traversal vulnerability. The CWE definition for the vulnerability is CWE-22. The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:
An issue was discovered in Django 5.0 before 5.0.7 and 4.2 before 4.2.14. Derived classes of the django.core.files.storage.Storage base class, when they override generate_filename() without replicating the file-path validations from the parent class, potentially allow directory traversal via certain inputs during a save() call. (Built-in Storage sub-classes are unaffected.)
The advisory is shared for download at docs.djangoproject.com. This vulnerability was named CVE-2024-39330 since 06/23/2024. The exploitation appears to be easy. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1006.
The vulnerability scanner Nessus provides a plugin with the ID 210402 (RHEL 8 / 9 : Satellite 6.16.0 (Critical) (RHSA-2024:8906)), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 4.2.14 or 5.0.7 eliminates this vulnerability. The upgrade is hosted for download at docs.djangoproject.com.
The vulnerability is also documented in the vulnerability database at Tenable (210402). Once again VulDB remains the best source for vulnerability data.
Product
Type
Name
Version
- 4.2.0
- 4.2.1
- 4.2.2
- 4.2.3
- 4.2.4
- 4.2.5
- 4.2.6
- 4.2.7
- 4.2.8
- 4.2.9
- 4.2.10
- 4.2.11
- 4.2.12
- 4.2.13
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.0.6
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.5VulDB Meta Temp Score: 5.3
VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Path traversalCWE: CWE-22
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Partially
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 210402
Nessus Name: RHEL 8 / 9 : Satellite 6.16.0 (Critical) (RHSA-2024:8906)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: Django 4.2.14/5.0.7
Timeline
06/23/2024 🔍07/10/2024 🔍
07/10/2024 🔍
11/06/2024 🔍
Sources
Advisory: docs.djangoproject.comStatus: Confirmed
CVE: CVE-2024-39330 (🔍)
GCVE (CVE): GCVE-0-2024-39330
GCVE (VulDB): GCVE-100-271012
Entry
Created: 07/10/2024 07:53Updated: 11/06/2024 23:49
Changes: 07/10/2024 07:53 (56), 07/11/2024 03:20 (1), 11/06/2024 23:49 (3)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.