Description
wger is a free, open-source workout and fitness manager. In versions prior to 2.6, a gym trainer can escalate their session to any higher-privileged account (gym manager, general manager) by chaining two calls to the trainer-login endpoint. Once a trainer performs a legitimate switch into a low-privileged user, the session flag trainer.identity is set and this flag alone bypasses the permission check on all subsequent trainer-login calls. This grants full gym administration capabilities including viewing all member data, modifying contracts, managing gym configuration, and accessing other trainers' and managers' personal information. This issue has been fixed in version 2.6.
Published: 2026-07-16
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In versions prior to 2.6, a gym trainer can chain two calls to the trainer‑login endpoint to elevate their privileges to any higher‑level account, such as gym manager or general manager. After a legitimate switch into a low‑privileged user, the session flag trainer.identity is set, and this flag alone bypasses permission checks on all subsequent trainer‑login calls. This flaw grants full gym administrative rights, allowing the trainer to view all member data, modify contracts, manage gym configuration, and access personal information of other trainers and managers. The vulnerability stems from improper privilege validation, identified as CWE‑269.

Affected Systems

wger, the open‑source workout and fitness manager, before version 2.6 is affected. Users running any release prior to 2.6 may be vulnerable to this privilege escalation.

Risk and Exploitability

The CVSS score of 8.1 indicates a high severity, while the EPSS score of less than 1 % shows that exploitation is unlikely at present. The flaw is not listed in the CISA KEV catalog, and no public exploits have been to hit the the flag is set, all further permission checks are ignored, providing complete administrative control over the gym’s data and configuration.

Generated by OpenCVE AI on July 31, 2026 at 01:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade wger to version 2.6 or later, which removes the session‑flag bypass.
  • If an upgrade is not immediately possible, isolate the trainer‑login functionality by limiting calls to a single session chain per user or disabling the second‑stage login endpoint for trainers.
  • Review and tighten role permissions so that trainer accounts cannot be used to elevate to managerial roles; enforce strict access controls on member and configuration data.

Generated by OpenCVE AI on July 31, 2026 at 01:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-9qpr-vc49-hqg2 wger: Privilege escalation via trainer-login session chaining allows gym trainer to impersonate gym manager
History

Fri, 17 Jul 2026 11:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 16 Jul 2026 23:45:00 +0000

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

Thu, 16 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
Description wger is a free, open-source workout and fitness manager. In versions prior to 2.6, a gym trainer can escalate their session to any higher-privileged account (gym manager, general manager) by chaining two calls to the trainer-login endpoint. Once a trainer performs a legitimate switch into a low-privileged user, the session flag trainer.identity is set and this flag alone bypasses the permission check on all subsequent trainer-login calls. This grants full gym administration capabilities including viewing all member data, modifying contracts, managing gym configuration, and accessing other trainers' and managers' personal information. This issue has been fixed in version 2.6.
Title wger: Privilege escalation via trainer-login session chaining allows gym trainers to impersonate gym managers
Weaknesses CWE-269
References
Metrics cvssV3_1

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


Subscriptions

Wger-project Wger
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-17T10:49:37.286Z

Reserved: 2026-05-04T20:24:31.916Z

Link: CVE-2026-43978

cve-icon Vulnrichment

Updated: 2026-07-17T10:49:29.910Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T01:15:18Z

Weaknesses
  • CWE-269

    Improper Privilege Management