CVE-2026-115976: Stored SQL injection via container sort setting
Improper neutralization of SQL in the container "Sort contentlets by" setting in dotCMS versions prior to 26.10.22-01, and 25.07.10 LTS prior to v23, allows an authenticated back-end user who can edit a container, without administrator rights, to store a value that dotCMS later inserts unvalidated into the ORDER BY clause of a database query. The stored value runs whenever the contents of that container are reordered and when the page is published, letting the user infer arbitrary data from the dotCMS database, including password hashes, API tokens, app configuration and content of other sites, and slow down the database. Fixed in 26.10.22-01 and later, and in 25.07.10 LTS v23. The setting now accepts only a supported column (treeorder, title, moddate, sortorder or inode) with an optional asc or desc. Any other value is rejected when a container is saved through the REST API, the container editor, copy or push publishing, and a previously stored unsupported value falls back to the default order.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
dotCMSto a version that resolves this vulnerability.Fixed in 26.10.22-01 - Upgrade
Upgrade
dotCMSto a version that resolves this vulnerability.Fixed in 25.07.10 LTS v23
Event History
Frequently Asked Questions
Which users can exploit this issue?
An authenticated back-end user who can edit a container can exploit it; administrator rights are not required. The user must be able to save a malicious value in the container's "Sort contentlets by" setting.
When does the stored payload execute?
The value is used when the container's contents are reordered and when a page using the container is published. This can allow database data inference and can slow the database.
What configurations are protected by the fix?
The fixed versions restrict the setting to tree_order, title, mod_date, sort_order, or inode, optionally followed by asc or desc. Unsupported values are rejected through the REST API, container editor, copy or push publishing, and previously stored unsupported values fall back to the default order.
What should teams do if they cannot patch immediately?
Limit container-editing permission to trusted back-end users, since that permission is sufficient to store the malicious value. Review containers' "Sort contentlets by" values for anything other than the supported columns with an optional asc or desc.