Description
Improper logging in the Login As REST endpoint (POST /api/v1/users/loginas, UserResource) in dotCMS versions before 26.11.18-01 causes several refused Login As requests, such as a request with no target user, a request to log in as oneself, or a request with a missing or wrong password for an administrator target, to write a security-log entry stating that the caller successfully logged in as the target user, directly after the error entry for the same request. A back-end user who holds the Login As role can use this to fill the security log with false impersonation records, which can mislead monitoring and incident response. In addition, a refused Login As request sent while the user is already impersonating another user cleared the stored original identity, so Logout As no longer worked and the session had to be ended. No privileges are gained: the session identity does not change on a refused request.

Fixed in 26.11.18-01 and later. The success entry is now written only after a Login As completes, every refusal returns before it, and a refused or failed request restores the session state it found, so an active Login As can still be ended with Logout As.
Published: 2026-12-04
Score: 5.3 Medium
EPSS: n/a
KEV: No
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

Vendor Solution

Upgrade to dotCMS 26.11.18-01 or later, or to 25.07.10 LTS v29 or later.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 04 Dec 2026 20:30:00 +0000

Type Values Removed Values Added
Description Improper logging in the Login As REST endpoint (POST /api/v1/users/loginas, UserResource) in dotCMS versions before 26.11.18-01 causes several refused Login As requests, such as a request with no target user, a request to log in as oneself, or a request with a missing or wrong password for an administrator target, to write a security-log entry stating that the caller successfully logged in as the target user, directly after the error entry for the same request. A back-end user who holds the Login As role can use this to fill the security log with false impersonation records, which can mislead monitoring and incident response. In addition, a refused Login As request sent while the user is already impersonating another user cleared the stored original identity, so Logout As no longer worked and the session had to be ended. No privileges are gained: the session identity does not change on a refused request. Fixed in 26.11.18-01 and later. The success entry is now written only after a Login As completes, every refusal returns before it, and a refused or failed request restores the session state it found, so an active Login As can still be ended with Logout As.
Title Refused Login As attempts recorded as successful in the security log
Weaknesses CWE-223
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: dotCMS

Published:

Updated: 2026-12-04T20:17:56.999Z

Reserved: 2026-11-18T23:16:44.845Z

Link: CVE-2026-132780

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-12-04T21:17:53.623

Modified: 2026-12-04T21:17:53.623

Link: CVE-2026-132780

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses
  • CWE-223

    Omission of Security-relevant Information