9.9critical
django-s3file: Relative path traversal
- Severity
- 9.9critical CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.56% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-67qg-7284-2277PYSEC-2026-328
Description
django-s3file is a lightweight file upload input for Django and Amazon S3. Prior to 7.0.2, S3FileMiddleware is vulnerable to relative path traversal attacks, where an attacker can use a modified request to escape pre-signed upload locations and have the Django application load files from random locations into request.FILES. Depending on how files are handled, this may lead to confidentiality and integrity issues. This vulnerability is fixed in 7.0.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| codingjoe django-s3file | < 7.0.2 | CVE List |
| django-s3file (PyPI) | before 7.0.2 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 9.9critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N |
Classification
What each source says
CVE List
django-s3file is a lightweight file upload input for Django and Amazon S3. Prior to 7.0.2, S3FileMiddleware is vulnerable to relative path traversal attacks, where an attacker can use a modified request to escape pre-signed upload locations and have the Django application load files from random locations into request.FILES. Depending on how files are handled, this may lead to confidentiality and integrity issues. This vulnerability is fixed in 7.0.2.
GitHub Advisory Database
Impact
S3FileMiddleware is vulnerable to relative path traversal attacks, where an attacker can use a modified request to escape pre-signed upload locations and have the Django application load files from random locations into request.FILES
Depending on how files are handled, this may lead to confidentiality and integrity issues.
Patches
Django-S3File urges all users to update to a patched version >=7.0.2.
NVD (es)
django-s3file es una entrada ligera de carga de archivos para Django y Amazon S3. Antes de la versión 7.0.2, S3FileMiddleware es vulnerable a ataques de salto de ruta relativo, donde un atacante puede usar una solicitud modificada para escapar de las ubicaciones de carga pre-firmadas y hacer que la aplicación Django cargue archivos desde ubicaciones aleatorias en request.FILES. Dependiendo de cómo se manejen los archivos, esto puede llevar a problemas de confidencialidad e integridad. Esta vulnerabilidad se corrige en la versión 7.0.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42196 changed 2026-05-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-67qg-7284-2277 changed 2026-10-27 | CC-BY-4.0 |
| NVD | CVE-2026-42196 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-328 changed 2026-07-13 | CC-BY-4.0 |