Vulnerability · Published Jun 6, 2022 · Assigned by GitHub_M

CVE-2022-24840Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in django-s3file

Critical 9.1

In plain English

A critical-severity path traversal in django-s3file from codingjoe. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)2.1%top 18.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIdjango-s3file5.5.1GHSA-4w8f-hjm9-xwgf
PyPIdjango-s3file5.5.1PYSEC-2022-208

Affected products (as reported)

VendorProductVersions
codingjoe django-s3file < 5.5.1

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

References