/

CVE-2026-125382

Severity:

HIGH RISK

(7.2)

Privilege Escalation (CWE-269) in Map-OS Users API

CVE-2026-125382

Deferred

Vulnerability type

Category:

Privilege Escalation

CWE:

CWE-269

Impact:

Unauthorized privilege changes and account compromise

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

Map-OS has a privilege escalation vulnerability in its REST users API that can let an operator with the cUsuario permission bypass permission-delegation and super-administrator protections. Depending on the request, an attacker with that access may assign the Administrator group, reset the super administrator's password, or delete higher-privileged users.

Affected context

The issue occurs in the Map-OS REST users API at /api/v1/usuarios. It may affect deployments where an operator with the cUsuario permission can send user-management requests without the API consistently enforcing delegation rules and protections for super-administrator accounts.

Exploit preconditions

  • Attack surface: The REST users API at /api/v1/usuarios
  • Required access: An account with the cUsuario permission
  • Trigger point: A POST, PUT, or DELETE request to the users API
  • Why exploitation is possible: The API may not enforce permission-delegation and super-administrator protections for these operations

Why this happens

This is an improper privilege management issue, mapped to CWE-269. The API permits a user-management operation without adequately checking whether the caller is authorized to grant the requested role or modify the target account. As a result, an operator's effective authority may exceed the intended permission boundary.

Potential impact

  • An attacker may assign the Administrator group to an account.
  • An attacker could reset the super administrator's password.
  • Higher-privileged users may be deleted.
  • Unauthorized account changes can compromise administrative control of the application.

General mitigation guidance

Defensive approaches focus on consistently enforcing authorization at the server-side operation boundary.

  • Apply deny-by-default authorization checks to every user-management action.
  • Verify that the caller may grant each role and modify each target account, especially protected administrator accounts.
  • Use secure-by-default role and delegation policies that prevent privilege increases beyond the caller's authority.
  • Minimize the permissions granted to operator accounts and limit access to administrative API functions.
  • Treat client-supplied roles and account attributes as untrusted, and validate them against server-side policy.

How teams detect issues like this

  • Review API handlers and authorization middleware for POST, PUT, and DELETE operations on user accounts.
  • Use static analysis or code review checks to identify role changes and account mutations that lack server-side authorization checks.
  • Monitor audit logs for unexpected Administrator-group assignments, super-administrator password resets, or deletion of privileged users.
  • Enforce policy checks that prevent operators from modifying accounts or assigning roles above their authorized scope.

Sources

SourceLink
github.comgithub.com/RamonSilva20/mapos
github.comgithub.com/RamonSilva20/mapos/blob/v5.2.1/application/helpers/api_helper.php#L51-L125
github.comgithub.com/RamonSilva20/mapos/commit/9a4c5dc3835b52c12616a73ab60635e96e23ad7a
github.comgithub.com/RamonSilva20/mapos/pull/3043
github.comgithub.com/RamonSilva20/mapos/releases/tag/v5.2.2
vulncheck.comvulncheck.com/advisories/map-os-5.0.0-to-before-5.2.2-privilege-escalation-via-api-v1-usuarios

Frequently asked

questions

The described attack requires an account with the cUsuario permission and access to the REST users API.

No. The issue concerns non-administrator operators bypassing protections intended to restrict privileged user-management actions.

Enforce server-side, deny-by-default authorization for each operation, including checks on the requested role and target account.

Define least-privilege roles and delegation rules, validate authorization at every API boundary, and test that lower-privileged users cannot modify protected accounts or grant elevated roles.

Find out what's already
exploitable in your codebase.