CVE-2026-121979: Log injection and forged log records by anonymous users
Improper neutralization of log output in dotCMS versions before 26.11.17-01 allows an anonymous user to write forged, well-formed records into the application log (dotcms.log and the console) by placing line breaks or terminal control sequences in request values, such as query parameters, that are logged when a request is rejected or fails to parse. An attacker can fabricate entries such as successful administrator logins from chosen addresses, and can hide or overwrite genuine entries when the log is viewed in a terminal, undermining the integrity of logs used for incident response, monitoring and audit.
Fixed in 26.11.17-01 and later. The shipped log layouts now escape line breaks and write control characters in log messages and exception text as "?", and input-conversion errors no longer log the rejected request value.
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.17-01 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.07.10 LTS v29
Event History
Frequently Asked Questions
Who can exploit this issue?
An anonymous user can exploit it by supplying crafted request values. No authenticated account is required.
What request conditions are needed for malicious content to reach the logs?
The crafted value must be logged when a request is rejected or fails to parse, such as through query parameters or other request values. Line breaks can create forged log records, while terminal control sequences can alter how entries appear when viewed in a terminal.
Are default log outputs affected?
The affected outputs are dotcms.log and the console. The issue can undermine log integrity for incident response, monitoring, and audit processes that rely on those outputs.
How can this be remediated?
Upgrade to dotCMS 26.11.17-01 or later. The fixed layouts escape line breaks, replace control characters in log messages and exception text with "?", and no longer log rejected request values for input-conversion errors.