CVE-2026-64886: File read and SSRF by a non-admin template author
The UtilMethods.getURL() method, which is exposed to Velocity templates as $UtilMethods, did not restrict the URL scheme or the destination host and returned the response body into the rendered page. In dotCMS versions before 26.08.12-01, 25.07.10 LTS before v18, and all 24.12.27 LTS and 24.04.24 LTS releases, an authenticated back-end user who can edit templates or containers, but is not an administrator, could read any local file the dotCMS service account can access, including process environment data that can expose database, mail, SSO and initial administrator credentials, and could make full-read server-side requests to loopback, private-network and cloud-metadata addresses. Fixed in 26.08.12-01 and later, and in 25.07.10 LTS v18. getURL now accepts only http and https, rejects internal and non-routable resolved addresses, no longer follows redirects, and logs each blocked request.
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.08.12-01 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.07.10 LTS v18
Event History
Frequently Asked Questions
Which users can exploit this issue?
An authenticated dotCMS back-end user who can edit templates or containers can exploit it; administrator privileges are not required. Users without those editing permissions are not described as able to trigger it.
What could an attacker access through this flaw?
They could read local files accessible to the dotCMS service account, including process environment data that may contain database, mail, SSO, and initial administrator credentials. They could also make server-side requests and read responses from loopback, private-network, and cloud-metadata addresses.
Are default protections sufficient on affected releases?
No. The vulnerable getURL behavior did not restrict URL schemes or destination hosts and returned response bodies into rendered pages. The fixed behavior limits requests to HTTP and HTTPS, rejects internal and non-routable resolved addresses, and does not follow redirects.
What can be done if upgrading is not immediately possible?
Restrict template and container editing permissions to trusted users, because that access is the stated exploitation prerequisite. Review access to the dotCMS service account and protect credentials that may be exposed through local files or process environment data.
How can defenders look for attempted exploitation after applying the fix?
The fixed getURL implementation logs each blocked request. Review those logs for blocked URL requests, particularly attempts targeting non-HTTP(S) schemes, loopback or private addresses, cloud-metadata endpoints, and redirect-based destinations.