CVE-2022-24840
CRITICAL 9.8CVSS 3.1Path Traversal in django-s3file
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.
- Published
- 9 Jun 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22CWE-96
- Also known as
- GHSA-4w8f-hjm9-xwgfPYSEC-2022-208
- Sources
- NVDJSONOSV GHSA-4w8f-hjm9-xwgfJSONOSV PYSEC-2022-208JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | django-s3file_project | django-s3filecpe:2.3:a:django-s3file_project:django-s3file:*:*:*:*:*:*:*:* |
< 5.5.1 | 5.5.1 |
| OSV | PyPI | django-s3file | < 5.5.1 | 5.5.1 |
References
- https://github.com/codingjoe/django-s3file/commit/68ccd2c621a40eb66fdd6af2be9d5fcc9c373318 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/codingjoe/django-s3file/security/advisories/GHSA-4w8f-hjm9-xwgf · Exploit, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-24840 · ADVISORY
- https://github.com/codingjoe/django-s3file · PACKAGE
- https://github.com/codingjoe/django-s3file/releases/tag/5.5.1 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/django-s3file/PYSEC-2022-208.yaml · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 9 Jun 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jun 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Jun 2022)