/

CVE-2025-71421

Severity:

HIGH RISK

(7.2)

Improper Privilege Management (CWE-269) in UVdesk Core

CVE-2025-71421

Deferred

Vulnerability type

Category:

Improper Privilege Management

CWE:

CWE-269

Impact:

Privilege Escalation to Administrator

Severity:

HIGH RISK

(7.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

UVdesk core-framework contains an improper privilege management vulnerability in the editAgent endpoint. An authenticated agent who already has agent-management privileges may change their own account role to ROLE_ADMIN, potentially gaining control over agents, tickets, and mail configuration.

Affected context

The vulnerability occurs in UVdesk deployments where the editAgent endpoint allows an agent-management user to submit changes for their own account. Risk exists when the endpoint accepts a client-controlled role value without enforcing server-side authorization rules that distinguish ordinary agent management from administrator role assignment.

Exploit preconditions

  • Attack surface: Authenticated web application endpoint
  • Required access: An account with agent-management privileges
  • Target condition: The attacker must be able to identify or submit their own account identifier
  • Trigger point: Processing an editAgent request containing an administrator role value
  • Why exploitation is possible: The endpoint does not adequately restrict self-assignment of the administrator role

Why this happens

The underlying issue is a failure to enforce authorization at the privilege boundary for account-role changes. The application appears to trust a user-supplied role parameter and permits a subject with limited administrative authority to assign themselves a higher-privileged role. This behavior maps to CWE-269: Improper Privilege Management, where privileges are assigned, changed, or validated without sufficient server-side controls.

Potential impact

  • An attacker may gain administrator-level access
  • The attacker could modify or manage other agent accounts
  • Tickets and support workflows may be exposed or altered
  • Mail configuration could be changed to affect message handling
  • Administrative access could enable broader application compromise

General mitigation guidance

Mitigation generally focuses on enforcing role-management authorization on the server rather than relying on client-provided values.

Common defensive patterns include:

  • Allowing only explicitly authorized administrators to assign administrator roles
  • Preventing users from changing their own privilege level
  • Deriving permitted role transitions from server-side policy
  • Validating account identifiers against the authenticated session and authorization context
  • Applying least privilege to agent-management accounts
  • Logging and reviewing role changes, especially administrator assignments
  • Using secure-by-default role policies that reject unsupported or elevated transitions

How teams detect issues like this

Organizations can identify similar issues through:

  • Static analysis for authorization checks that rely on request parameters
  • Code review of endpoints that modify roles, permissions, or account ownership
  • Tests verifying that users cannot elevate their own privileges
  • API and policy tests covering unauthorized role transitions
  • Monitoring for administrator-role assignments initiated by non-administrator accounts
  • Automated security review tools that flag missing object-level and function-level authorization checks

Sources

SourceLink
github.comgithub.com/uvdesk/community-skeleton/releases/tag/v1.1.8
github.comgithub.com/uvdesk/core-framework
github.comgithub.com/uvdesk/core-framework/blob/v1.1.6/Controller/Account.php#L278-L282
github.comgithub.com/uvdesk/core-framework/commit/b8bcdc503659f9d5c5cd73627cfc5d45508b9a55
github.comgithub.com/uvdesk/core-framework/releases/tag/v1.1.7
hackmd.iohackmd.io/@leediay/B1Cz5voFGg
vulncheck.comvulncheck.com/advisories/uvdesk-core-framework-before-1.1.7-privilege-escalation-via-editagent

Frequently asked

questions

Yes, it may be exploitable through the web application if the attacker can authenticate and reach the affected endpoint with the required agent-management privilege.

No. The attacker generally needs an account authorized to manage agents, but the vulnerability may allow that account to assign itself administrator privileges.

Enforce server-side authorization for every role transition, reject self-elevation, and permit administrator-role assignment only through a trusted administrative policy.

Use deny-by-default authorization, validate role changes against the authenticated identity and server-side permissions, and include privilege-boundary tests in CI and security reviews.

Find out what's already
exploitable in your codebase.