Vulnerability Details : CVE-2022-24840
Potential exploit
django-s3file is a lightweight file upload input for Django and Amazon S3 . In versions prior to 5.5.1 it was possible to traverse the entire AWS S3 bucket and in most cases to access or delete files. If the `AWS_LOCATION` setting was set, traversal was limited to that location only. The issue was discovered by the maintainer. There were no reports of the vulnerability being known to or exploited by a third party, prior to the release of the patch. The vulnerability has been fixed in version 5.5.1 and above. There is no feasible workaround. We must urge all users to immediately updated to a patched version.
Vulnerability category: Directory traversal
Products affected by CVE-2022-24840
- cpe:2.3:a:django-s3file_project:django-s3file:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-24840
0.15%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 33 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-24840
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
9.1
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
3.9
|
5.2
|
GitHub, Inc. |
CWE ids for CVE-2022-24840
-
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.Assigned by: security-advisories@github.com (Primary)
References for CVE-2022-24840
-
https://github.com/codingjoe/django-s3file/security/advisories/GHSA-4w8f-hjm9-xwgf
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in django-s3file · Advisory · codingjoe/django-s3file · GitHubExploit;Third Party Advisory
-
https://github.com/codingjoe/django-s3file/commit/68ccd2c621a40eb66fdd6af2be9d5fcc9c373318
Fix CVE-XXXX-XXXX -- Fix Path Traversal security vulnerability · codingjoe/django-s3file@68ccd2c · GitHubPatch;Third Party Advisory
Jump to