{"id":"CVE-2026-69131","aliases":["CVE-2026-69131","GHSA-vf85-8ff2-3r9w"],"related":[],"kind":"vulnerability","state":"published","title":"django-filer: Missing per-object authorization on `discard` and `edit_redirect` version transitions","summary":"django-filer is a file and image management application for Django. Prior to 3.5.0, the delete_files_or_folders action in filer/admin/folderadmin.py checks global Django model-level deletion permission but omits check_folder_edit_permissions and check_files_edit_permissions when FILER_ENABLE_PERMISSIONS is enabled. An authenticated staff user who has a global delete_file, delete_folder, or delete_image permission but is limited to read-only access by FolderPermission can therefore delete files, folders, and descendants from the restricted folder. Deployments using the default disabled per-folder permission system are not affected, and the issue does not create a read-confidentiality impact. This issue is fixed in version 3.5.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"django-filer is a file and image management application for Django. Prior to 3.5.0, the delete_files_or_folders action in filer/admin/folderadmin.py checks global Django model-level deletion permission but omits check_folder_edit_permissions and check_files_edit_permissions when FILER_ENABLE_PERMISSIONS is enabled. An authenticated staff user who has a global delete_file, delete_folder, or delete_image permission but is limited to read-only access by FolderPermission can therefore delete files, folders, and descendants from the restricted folder. Deployments using the default disabled per-folder permission system are not affected, and the issue does not create a read-confidentiality impact. This issue is fixed in version 3.5.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nWhen 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.\n\nThis 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.\n\n## Affected versions\n\n- django-filer `<= 3.4.4` (verified end-to-end on 3.4.4 and on `master` prior to   the fix).\n\nOnly 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.\n\n## Patched versions\n\n- Fixed in PR [#1605](https://github.com/django-cms/django-filer/pull/1605).   Upgrade to the first release containing that commit (`3.5.0` or later).\n\n## Details\n\nThe `delete_files_or_folders` admin action in `filer/admin/folderadmin.py` authorized deletion using only:\n\n1. `self.has_delete_permission(request)` — which returns `True` for `obj=None`, and\n2. the Django model-level `delete_file` / `delete_folder` / `delete_image`    permission (enforced downstream by the admin delete machinery).\n\nIt 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`.\n\nBecause `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.\n\n### Precondition \n\nThe 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`. \n\n## Mitigation\n\n- Upgrade to the patched release.\n- Until upgrading, avoid granting the model-level `delete_file` /\n  `delete_folder` / `delete_image` permission to staff who are meant to be\n  read-only on specific folders via `FolderPermission`.\n\n## Credit\n\nReported through coordinated disclosure. Fixed in PR #1605.","format":"markdown","source":"ghsa"}],"published":"2026-11-18T21:10:22.282Z","modified":"2026-11-19T16:21:44.603Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-285","CWE-639","CWE-862"],"affected":[{"ranges":[{"version":"< 3.5.0","status":"affected"}],"vendor":"django-cms","product":"django-filer","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.5.0"}],"ecosystem":"PyPI","package":"django-filer","purl":"pkg:pypi/django-filer","source":"ghsa"}],"references":[{"url":"https://github.com/django-cms/django-filer/security/advisories/GHSA-vf85-8ff2-3r9w","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/django-cms/django-filer/pull/1605","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/django-cms/django-filer/commit/29d20ec0de13d7f77fa2cea93166f8d50a3f508d","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/django-cms/django-filer/commit/742ba4c3094dd75e586ca3a05e6ad2703de4553b","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/django-cms/django-filer/releases/tag/3.5.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/django-cms/django-filer","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-19T15:08:47.959Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-69131","url":"https://www.cve.org/CVERecord?id=CVE-2026-69131","licence":"CVE Terms of Use","modified":"2026-11-19T15:09:02.635Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vf85-8ff2-3r9w","url":"https://github.com/advisories/GHSA-vf85-8ff2-3r9w","licence":"CC-BY-4.0","modified":"2026-11-18T21:30:14.031Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-69131","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69131","licence":"Public domain","modified":"2026-11-19T16:21:44.603Z"}],"updatedAt":"2026-11-25T22:59:51.913Z","epss":{"score":0.00301,"percentile":0.24597,"date":"2026-12-01T12:00:22.000Z"}}