Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. django-s3file
  4. ›
  5. CVE-2022-24840

CVE-2022-24840: Path Traversal in django-s3file

June 6, 2022 (updated September 16, 2024)

It was possible to traverse the entire AWS S3 bucket and in most cases to access or delete files. The issue was discovered by the maintainer. There were no reports of the vulnerability being known to or exploited by a third party, before the release of the patch.

If the AWS_LOCATION setting was set, traversal was limited to that location only. If all your files handling views (like form views) require authentication or special permission, the thread is limited to privileged users.

References

  • github.com/advisories/GHSA-4w8f-hjm9-xwgf
  • github.com/codingjoe/django-s3file
  • github.com/codingjoe/django-s3file/commit/68ccd2c621a40eb66fdd6af2be9d5fcc9c373318
  • github.com/codingjoe/django-s3file/releases/tag/5.5.1
  • github.com/codingjoe/django-s3file/security/advisories/GHSA-4w8f-hjm9-xwgf
  • github.com/pypa/advisory-database/tree/main/vulns/django-s3file/PYSEC-2022-208.yaml
  • nvd.nist.gov/vuln/detail/CVE-2022-24840

Code Behaviors & Features

Detect and mitigate CVE-2022-24840 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.5.1

Fixed versions

  • 5.5.1

Solution

Upgrade to version 5.5.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-96: Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')

Source file

pypi/django-s3file/CVE-2022-24840.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:53 +0000.