Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in django-s3file
Published Jun 6, 2022
9.3
CRITICALCVSS 4.0
EPSS 2.04%
Description
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.
Affected products
-
Affected
- < 5.5.1
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| Codingjoe | Django-S3file | unknown | Affected
|
- < 5.5.1
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (7)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-0084 Advisory
- https://github.com/advisories/GHSA-4w8f-hjm9-xwgf Advisory
- https://github.com/codingjoe/django-s3file/commit/68ccd2c621a40eb66fdd6af2be9d5fcc9c373318 x_refsource_MISCPatchThird Party Advisory
- https://github.com/codingjoe/django-s3file/releases/tag/5.5.1
- https://github.com/codingjoe/django-s3file/security/advisories/GHSA-4w8f-hjm9-xwgf x_refsource_CONFIRMExploitThird Party Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/django-s3file/PYSEC-2022-208.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2022-24840
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-0084 | Advisory | |
| https://github.com/advisories/GHSA-4w8f-hjm9-xwgf | Advisory | |
| https://github.com/codingjoe/django-s3file/commit/68ccd2c621a40eb66fdd6af2be9d5fcc9c373318 | x_refsource_MISCPatchThird Party Advisory | |
| https://github.com/codingjoe/django-s3file/releases/tag/5.5.1 | ||
| https://github.com/codingjoe/django-s3file/security/advisories/GHSA-4w8f-hjm9-xwgf | x_refsource_CONFIRMExploitThird Party Advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/django-s3file/PYSEC-2022-208.yaml | ||
| https://nvd.nist.gov/vuln/detail/CVE-2022-24840 |
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
Red Hat
No data
GitHub