/

CVE-2026-126662

Severity:

HIGH RISK

(7.1)

Access Control Bypass (CWE-862) in Contao File Manager

CVE-2026-126662

Deferred

Vulnerability type

Category:

Access Control Bypass

CWE:

CWE-862

Impact:

Unauthorized folder modification and potential exposure of files

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Contao's file manager Edit-Multiple operation can bypass filemount restrictions when handling folder paths outside a user's permitted area. A backend user with permission to change the protected or syncExclude field may be able to publish restricted folders or exclude them from synchronization, potentially exposing files.

Affected context

The issue affects Contao versions 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6. It occurs in the backend file manager's Edit-Multiple operation when a filemount-restricted user can change the protected or syncExclude field and the operation does not adequately constrain submitted folder paths to the user's permitted filemount.

Exploit preconditions

  • Attack surface: Contao backend file manager's Edit-Multiple operation
  • Required access: A backend account with permission to edit the protected or syncExclude field
  • Trigger point: Processing folder paths supplied through the operation's IDS parameter
  • Why exploitation is possible: The operation may fail to enforce the user's filemount boundary for submitted paths

Why this happens

The underlying issue is an authorization check that does not adequately restrict a bulk operation to resources within the current user's permitted filemount. This is an access control enforcement failure mapped to CWE-862: Missing Authorization. The insecure pattern is trusting a submitted resource path without independently confirming that the user is authorized to modify that resource.

Potential impact

  • A restricted backend user may be able to change folder settings outside their filemount.
  • Protected folders could be made publicly accessible, potentially exposing files for download.
  • Folders could be excluded from DBAFS synchronization, which may affect synchronization integrity or availability.

General mitigation guidance

Defensive patterns include enforcing authorization for every target folder on the server, including during bulk operations, and deriving accessible resources from the authenticated user's permissions rather than trusting submitted paths. Keep access to sensitive folder fields limited to users who need it, use least-privilege backend roles, and default to denying operations when authorization cannot be established.

How teams detect issues like this

  • Review bulk file-manager operations for server-side authorization checks on every affected folder.
  • Use static analysis and code review to identify resource updates driven by request parameters without ownership or permission checks.
  • Add tests and policy checks confirming that users cannot modify folders outside their filemount, including through bulk operations.
  • Monitor backend activity for changes to protected or synchronization settings on folders outside an account's expected scope.

Sources

SourceLink
github.comgithub.com/contao/contao/blob/5.3.53/core-bundle/contao/drivers/DC_Folder.php#L1716-L1720
github.comgithub.com/contao/contao/commit/240e169441796bb703819ee0e22728708f946b70
github.comgithub.com/contao/contao/commit/a104202df2b532bb64805a0856fc94bb0bddbb66
github.comgithub.com/contao/contao/commit/c01898f99c5d5af50a227ee85f27270c5427f900
github.comgithub.com/contao/contao/releases/tag/5.3.54
github.comgithub.com/contao/contao/releases/tag/5.7.17
github.comgithub.com/contao/contao/releases/tag/6.0.6
github.comgithub.com/contao/contao/security/advisories/GHSA-9jfh-v443-w3fj
vulncheck.comvulncheck.com/advisories/contao-4.0.0-before-5.3.54-5.4.0-before-5.7.17-and-6.0.0-before-6.0.6-filemount-bypass-via-edit-multiple

Frequently asked

questions

It concerns backend users who have permission to edit the protected or syncExclude field, but whose filemount should restrict access to the affected folders.

Yes. The described attack requires access to the backend file manager and the relevant field permission.

Check authorization server-side for every folder targeted by an operation, including each item in a bulk edit, and reject paths outside the user's permitted filemount.

Apply deny-by-default authorization to resource operations, avoid trusting client-supplied paths as proof of access, and test permission boundaries across both individual and bulk actions.

Find out what's already
exploitable in your codebase.