Relative Path Traversal in django-s3file - CVE-2026-42196

 

Relative Path Traversal in django-s3file - CVE-2026-42196

Published: April 28, 2026


Vulnerability identifier: #VU128412
CSH Severity: High
CVSS v4.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/E:U/U:Amber
CVE-ID: CVE-2026-42196
CWE-ID: CWE-23
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Johannes Maron
Affected software:
django-s3file

Detailed vulnerability description

The vulnerability allows a remote attacker to disclose sensitive information and modify data.

The vulnerability exists due to relative path traversal in S3FileMiddleware when handling a modified request for pre-signed upload locations. A remote attacker can send a specially crafted request to disclose sensitive information and modify data.

The issue can cause the Django application to load files from unintended locations into request.FILES.


How to mitigate CVE-2026-42196

Install security update from vendor's website.

Sources