CVE-2026-132106: Restricted files and events listed through Velocity macro tool methods that ignore permissions
Incorrect authorization in the $macro Velocity view tool (DotCMSMacroWebAPI methods getMediaGalleryFolderFiles and getEvents) in dotCMS versions before 26.11.10-02 allows a back-end user who can author Velocity that renders on a page to list file assets in folders, and event content, that the viewer has no permission to read, on any site the code names. These methods read folders, files, categories and content as the system user instead of the requesting user, so the listing, including file names, titles, paths and descriptions, is also shown to anonymous visitors of the page.
Fixed in 26.11.10-02 and later. Both methods now read as the requesting user (anonymous when nobody is logged in) and honor front-end permissions, so each viewer sees only files and events they can read. Galleries over folders that the visitor cannot read now show fewer files.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 26.11.10-02 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.07.10 LTS v30
Event History
Frequently Asked Questions
Who can exploit this issue?
Exploitation requires a back-end user who is able to author Velocity code that renders on a page. Anonymous visitors do not need to authenticate to receive exposed listings once such code is present on a page.
Are all dotCMS installations affected by default?
The issue affects versions before 26.11.10-02 when pages use the $macro Velocity view tool methods getMediaGalleryFolderFiles or getEvents in attacker-authored Velocity. The provided information does not establish that these methods are used by default.
What information may be exposed?
Affected pages can list file assets in folders and event content that a viewer cannot read. Exposed listing data can include file names, titles, paths, and descriptions.
What should be done if patching cannot happen immediately?
Restrict the ability to author Velocity that renders on pages, and review existing Velocity for calls to getMediaGalleryFolderFiles and getEvents. Avoid using those methods to display folders or events that anonymous or other viewers should not be able to read.
How can an administrator determine whether content is currently exposed?
Review rendered pages containing Velocity calls to getMediaGalleryFolderFiles or getEvents, especially where the code names other sites or restricted folders. Test those pages as an anonymous user and as lower-privileged users to see whether listings include files or events they lack permission to read.