Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in django-s3file
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| codingjoe | django-s3file | before 5.5.1 | 5.5.1 | Patch available | CNA |
| — | django-s3file (PyPI) | before 5.5.1 | 5.5.1 | Patch available | GHSA-4w8f-hjm9-xwgf |
- django-s3file Vendorcodingjoe Affected before 5.5.1 Fixed in 5.5.1 Patch available CNA
- django-s3file (PyPI) Vendor— Affected before 5.5.1 Fixed in 5.5.1 Patch available GHSA-4w8f-hjm9-xwgf
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:django-s3file_project:django-s3file:*:*:*:*:*:*:*:* | before 5.5.1 | Vulnerable | Django-s3file Project |
- cpe:2.3:a:django-s3file_project:django-s3file:*:*:*:*:*:*:*:* Versions before 5.5.1 Vulnerable ·Django-s3file Project
Remediation
- Fix · CNA django-s3file (codingjoe) Fixed in 5.5.1
- Fix · GHSA-4w8f-hjm9-xwgf django-s3file (PyPI) Fixed in 5.5.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24840
- 2026-10-03 Alias added: GHSA-4w8f-hjm9-xwgf
References
More codingjoe vulnerabilities
- TI-2026-30517 django-s3file: Relative path traversal CVSS 4.0CRITICAL 9.9
- TI-2025-30708 Django-Select2 Vulnerable to Widget Instance Secret Cache Key Leaking CVSS 3.1HIGH 8.2
Sources
- CVE-2022-24840 · CVE Program
- CVE-2022-24840 · NVD
- FIRST EPSS
- GHSA-4w8f-hjm9-xwgf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences