{"id":"CVE-2022-24840","published":"2022-06-06T19:10:11Z","modified":"2025-04-22T17:54:56Z","title":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in django-s3file","vendor":"codingjoe","product":"django-s3file","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02067,"percentile":0.81863,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/codingjoe/django-s3file/security/advisories/GHSA-4w8f-hjm9-xwgf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/codingjoe/django-s3file/commit/68ccd2c621a40eb66fdd6af2be9d5fcc9c373318","tags":["x_refsource_MISC"]}],"priority":{"score":22.7,"factors":[{"name":"EPSS percentile","points":16.37},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"codingjoe","affectedVersions":[{"vendor":"codingjoe","product":"django-s3file","versions":["< 5.5.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-22T15:37:24.168374Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"django-s3file","vulnerableRanges":["<5.5.1"],"patched":["5.5.1"],"from":["GHSA-4w8f-hjm9-xwgf","PYSEC-2022-208"],"provenance":"source"}],"summary":{"text":"The django-s3file component of the codingjoe django-s3file package, a file upload input for Django and Amazon S3, contains a path traversal flaw (CWE-22) that allows the pathname to escape its restricted directory. An unauthenticated attacker with network access can exploit it without any user interaction or special configuration to traverse the entire S3 bucket, reading or deleting files, though traversal is confined to the configured AWS_LOCATION when that setting is used.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:32Z"},"euvd":{"id":"EUVD-2022-0084","exploited":false,"provenance":"source"}}