PT-2026-151120
Published
2026-11-18
·
Updated
2026-11-18
Description by
CVSS 3.1
4.3
MediumMetricsAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Summary
When django-filer's optional per-folder permission system is enabled (
FILER ENABLE PERMISSIONS=True), the "Delete files and/or folders" admin action does not enforce per-folder edit permissions the way every other mutating action does. A staff user who is scoped read-only on a folder via FolderPermission (can edit = DENY), but who holds the global Django model-level delete * permission, can delete files and entire subfolders inside that folder — even though their move, rename, copy, and resize actions on the same folder are correctly denied.This is an integrity / edit-control gap (unauthorized deletion). It is not a read-confidentiality issue: filer files are world-downloadable by design, so no confidentiality claim is made.
Affected versions
- django-filer
<= 3.4.4(verified end-to-end on 3.4.4 and onmasterprior to the fix).
Only installations running with
FILER ENABLE PERMISSIONS = True (the optional per-folder FolderPermission system) are affected. Deployments that leave permissions disabled (the default) rely solely on Django model-level permissions and are not impacted by this specific gap.Patched versions
- Fixed in PR #1605. Upgrade to the first release containing that commit (
3.5.0or later).
Details
The
delete files or folders admin action in filer/admin/folderadmin.py authorized deletion using only:self.has delete permission(request)— which returnsTrueforobj=None, and- the Django model-level
delete file/delete folder/delete imagepermission (enforced downstream by the admin delete machinery).
It never called
check folder edit permissions or check files edit permissions. Every sibling mutating action — move, rename, copy, resize — does call these helpers, which walk the selected objects (and their descendants) and enforce the per-folder can edit grant from FolderPermission.Because
FolderPermission has no dedicated can delete field, deletion is treated as an edit/management operation and is gated elsewhere on can edit. The delete action's omission therefore let a folder-scoped read-only user bypass the per-folder control that constrains all their other write operations.Precondition
The attacker must hold the Django model-level
delete file / delete folder / delete image permission. A purely read-only user (no model-level delete perm) receives 403 and cannot exploit this. This precondition matches the standard folder-scoped-staff deployment model, where staff hold model-level permissions and are further constrained per-folder by FolderPermission.Mitigation
- Upgrade to the patched release.
- Until upgrading, avoid granting the model-level
delete file/delete folder/delete imagepermission to staff who are meant to be read-only on specific folders viaFolderPermission.
Credit
Reported through coordinated disclosure. Fixed in PR #1605.
Found an issue in the description? Have something to add? Feel free to write us 👾