SecurityContext

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

  • Cve: CVE-2022-24840
  • Name: django-s3file - Path Traversal
  • 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.
  • Impact: Attackers can traverse and access or delete files in the S3 bucket, potentially leading to data loss or unauthorized data access.
  • Remediation: Update to version 5.5.1 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_read, file_system_write
  • Requirement type: logged_in
  • Requirements: Attacker needs access to the application
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.02067
  • Epss percentile: 0.81889
  • Assignee: [email protected]
  • Published at: 2022-06-09T04:15:10Z
  • Age in days: 1629
  • Modified at: 2026-06-17T04:32:38Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24840
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/codingjoe/django-s3file/security/advisories/GHSA-4w8f-hjm9-xwgfnvd2022-06-09

References

UrlSourceTags
https://github.com/codingjoe/django-s3file/commit/68ccd2c621a40eb66fdd6af2be9d5fcc9c373318nvdPatch, Third Party Advisory
https://github.com/codingjoe/django-s3file/security/advisories/GHSA-4w8f-hjm9-xwgfnvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
django-s3file_project:django-s3file< 5.5.1nonvd/v1/products/django-s3file_project/django-s3file

Projects

RepositoryLink kindsIndexedUrl
codingjoe/django-s3filecommit, fix, package, releases, security_advisoryyes/v1/repositories/codingjoe/django-s3file

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-06-09
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts