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.
Published: 2026-10-07
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Privilege Escalation
Action: Apply Patch
AI Analysis

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.

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

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

Wed, 07 Oct 2026 16:00:00 +0000

Type Values Removed Values Added
First Time appeared Wger-project
Wger-project wger
Vendors & Products Wger-project
Wger-project wger

Wed, 07 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 07 Oct 2026 14:00:00 +0000

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'}


Subscriptions

Wger-project Wger
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-07T14:35:38.960Z

Reserved: 2026-05-13T22:18:22.830Z

Link: CVE-2026-46434

cve-icon Vulnrichment

Updated: 2026-10-07T14:35:35.641Z

cve-icon NVD

Status : Deferred

Published: 2026-10-07T14:17:10.277

Modified: 2026-10-07T15:17:20.877

Link: CVE-2026-46434

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T15:30:17Z

Weaknesses
  • CWE-269

    Improper Privilege Management