LiveActive security incident?Get immediate response
CVE Record

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

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.

CriticalCVSS 9.1Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2022-24840 lets an unauthenticated attacker abuse django-s3file versions before 5.5.1 to move outside the intended upload path in S3. In most cases, this could expose or delete files across the bucket. If AWS_LOCATION was configured, exposure was limited to that location.

Executive priority

Treat as urgent for any internet-facing Django service using django-s3file with S3 uploads. The business risk is unauthorized access to or deletion of stored files. Prioritize patching over compensating controls because the advisory names no feasible workaround.

Technical view

The flaw is CWE-22 path traversal in django-s3file before 5.5.1. The advisory reports network-accessible, low-complexity, unauthenticated impact with high confidentiality and integrity risk, CVSS 9.1. The maintainer fixed it in 5.5.1; sources state there is no feasible workaround.

Likely exposure

Django applications using codingjoe django-s3file below 5.5.1 with Amazon S3-backed uploads are exposed. Impact depends on application reachability, configured AWS_LOCATION, and S3 permissions available to the application.

Exploitation context

The source bundle does not confirm active exploitation, and KEV is false. The advisory says there were no reports of third-party knowledge or exploitation before patch release. The issue is still urgent because it is unauthenticated and can affect bucket contents.

Researcher notes

Do not assume full bucket exposure in every deployment. AWS_LOCATION may limit traversal scope, and effective S3 permissions determine practical impact. Sources do not provide exploit evidence beyond the vulnerability description and fix.

Mitigation direction

  • Upgrade django-s3file to 5.5.1 or later immediately.
  • Review S3 bucket permissions used by affected applications.
  • Confirm AWS_LOCATION is configured where appropriate to constrain application scope.
  • Check vendor guidance before relying on any alternative mitigation.

Validation and detection

  • Inventory applications using django-s3file and identify deployed versions.
  • Confirm dependency lockfiles and runtime environments use 5.5.1 or later.
  • Review S3 access logs for unusual object reads or deletes around affected services.
  • Verify affected upload workflows still function after upgrade.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-24840 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.1 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.1CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N3.95.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.1Critical
CVSS 3.1 vector shape for CVE-2022-24840Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
codingjoedjango-s3file< 5.5.1Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-22 · source CWE mapping

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.