CVE-2026-46434

wger: Trainer Privilege Escalation - Improper Privilege Management

Published Oct 7, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
wger is a free, open-source workout and fitness manager. Prior to version 2.6, a user with only the `gym_trainer` permission can deactivate any account in the same gym, including `gym_manager` and `general_gym_manager` accounts. The `UserDeactivateView` grants access to anyone holding any one of `gym.manage_gym`, `gym.manage_gyms`, or `gym.gym_trainer` (OR logic via `WgerMultiplePermissionRequiredMixin`), and performs no privilege-hierarchy check to prevent a lower-privileged role from disabling a higher-privileged one. Version 2.6 fixes the issue.

Analysis

AI-generated

Technical impact

Before version 2.6, users with the gym_trainer permission in wger could deactivate any account in the same gym, including those with higher privileges such as gym_manager or general_gym_manager. The privilege escalation occurs because the UserDeactivateView allows access to anyone holding gym.manage_gym, gym.manage_gyms, or gym.gym_trainer (OR logic) and does not enforce a privilege‑hierarchy check. This flaw enables a lower privileged role to disable higher privileged accounts, undermining the access control model represented by CWE‑269.

Affected Systems

The vulnerability affects the wger open‑source workout manager released by wger-project:wger. All versions prior to 2.6, including 2.5 and earlier, are vulnerable. Version 2.6 introduces a fix that validates role hierarchy before allowing deactivation.

Risk and Exploitability

The CVSS score of 7.1 indicates a high‐severity privilege escalation. The EPSS score is not available, and the vulnerability is not listed in CISA KEV, suggesting no widespread exploitation reported yet. Attackers must possess valid credentials with gym_trainer permission and operate within a gym context to exploit the flaw. The OR logic means any one of the three permissions grants deactivation rights, so if gym_trainer is broadly assigned the risk of privilege abuse is significant. The lack of an automatic privilege hierarchy check makes this a classic example of improper authorization control.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade wger to version 2.6 or later to apply the vendor patch
  • Revoke the gym_trainer permission from users who do not require it or downgrade them to a lower privilege level
  • Enable and review audit logs for account deactivation actions to detect any unauthorized use of the feature

Generated by OpenCVE AI on October 7, 2026 at 15:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x249-cx55-2h87 wger: Trainer Privilege Escalation - Improper Privilege Management
History
Type Values Removed Values Added
First Time appeared Wger-project
Wger-project wger
Vendors & Products Wger-project
Wger-project wger
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description wger is a free, open-source workout and fitness manager. Prior to version 2.6, a user with only the `gym_trainer` permission can deactivate any account in the same gym, including `gym_manager` and `general_gym_manager` accounts. The `UserDeactivateView` grants access to anyone holding any one of `gym.manage_gym`, `gym.manage_gyms`, or `gym.gym_trainer` (OR logic via `WgerMultiplePermissionRequiredMixin`), and performs no privilege-hierarchy check to prevent a lower-privileged role from disabling a higher-privileged one. Version 2.6 fixes the issue.
Title wger: Trainer Privilege Escalation - Improper Privilege Management
Weaknesses CWE-269
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N'}

Weaknesses
  • CWE-269

    Improper Privilege Management

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 7, 2026, 2:35 PM
Reserved
May 13, 2026, 10:18 PM
Status
Deferred
Published
Oct 7, 2026, 2:17 PM
Modified
Oct 7, 2026, 3:17 PM