Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain gym.manage_gym permission with gym=None (default unlinked state)
-
DeliveryEnumerate sequential victim PKs via /en/user/<pk>/overview
-
ExploitCraft POST request to delete, deactivate, or activate endpoint
-
ExecutionRaw None != None comparison returns False, bypassing gym-scope guard
-
ImpactPermanently delete or lock out target user accounts
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two concurrent conditions: (1) the attacker must hold a wger account with the gym.manage_gym permission AND have gym=None (unlinked from any specific gym - this is the default state for any newly provisioned staff account before an administrator assigns them to a gym); and (2) each victim account must also have gym=None. If either the attacker or any target victim has a non-None gym assignment, the raw integer comparison correctly enforces scope separation and the bypass does not apply. The gym.manage_gym permission must be explicitly granted by an administrator, so exploitation cannot originate from a default end-user or athlete account. The attack is limited to the three write-side operations - permanent account deletion, deactivation (lockout), and re-activation (undoing defensive deactivation); the impersonation chain via UserDetailView/trainer_login is blocked by the correctly patched is_same_gym() helper at the dispatch layer. |
| Impact | The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/VI:H/VA:H) accurately captures that exploitation requires a specific precondition - both attacker and victim must have gym=None - which raises effective complexity. Within a single wger deployment, however, this state is the default for any newly created gym staff account before an administrator assigns them to a gym, making it an unremarkable operational condition rather than a rare edge case. EPSS data is not available, and this CVE is not listed in the CISA KEV catalog; no public exploit code has been identified at time of analysis. The integrity and availability consequences within any active instance are severe: the delete vector is permanent and irreversible, and deactivation can silently lock out platform users. The overall deployment footprint is niche, but even a mid-sized community fitness network operating wger - such as one in gniezno or a similar municipal installation - should treat any unlinked (gym=None) staff account holding gym.manage_gym as an immediate hardening target. The CVSS 4.0 base score of 6.1 is plausible but arguably understates the irreversibility of the delete vector, which causes permanent data loss with no recovery path. |
| Exploit ScenarioDerived | A gym staff member possesses a wger account with gym.manage_gym permission that has not been linked to a gym (gym=None, the default post-provisioning state). The attacker enumerates victim user PKs via /en/user/<pk>/overview to identify other gym=None accounts, then issues POST requests to /en/user/<pk>/delete for each target, bypassing the gym-scope check because the raw None != None comparison evaluates to False and the guard does not fire. No public exploit code has been identified at time of analysis, but the GHSA advisory provides sufficient technical detail - including file paths, line numbers, and reproduction steps against a public Docker image - that exploitation is straightforward for any attacker with the advisory in hand. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 06, 2026
Incomplete authorization fix in wger through master exposes three user-management views in wger/core/views/user.py to the same None != None gym-scope bypass previously identified in CVE-2026-43948 (GHSA-mhc8-p3jx-84mm). A gym staff member holding gym.manage_gym permission whose account has gym=None - the default unlinked state for any newly provisioned staff account - can permanently delete, deactivate, or re-activate any other user also carrying gym=None, exploiting a raw integer comparison that evaluates None != None as False instead of blocking the operation. No vendor-released patch has been identified at time of analysis; all wger versions through the master Docker image build of 2026-05-08 are confirmed affected.
RemediationAI
No vendor-released patch has been identified at time of analysis; the advisory at https://github.com/wger-project/wger/security/advisories/GHSA-mw8f-w6p8-xrf4 lists the fixed version as None. Administrators should apply the following compensating controls while monitoring upstream for a release. First, immediately audit all accounts holding gym.manage_gym permission and assign every such account to a specific gym (gym != None) - this eliminates the attacker-side precondition and is the most effective single mitigation, with no operational trade-off for legitimately linked staff. Second, revoke gym.manage_gym from any account that does not operationally require it, minimizing the attack surface. Third, consider restricting network access to /en/user/<pk>/delete, /en/user/<pk>/deactivate, and /en/user/<pk>/activate via a reverse-proxy ACL scoped to administrative IP ranges; note this will require alternate workflows for any gym staff who legitimately manage users from outside those ranges. Finally, enable application-layer logging for these three endpoints and alert on anomalous patterns, as sequential PK targeting is detectable. The VulnCheck advisory at https://www.vulncheck.com/advisories/wger-incomplete-authorization-fix-cross-tenant-account-deletion provides additional technical context.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
wger is a Django-based open-source workout and gym-management web application (cpe:2.3:a:wger-project:wger:*:*:*:*:*:*:*:*). The root cause is CWE-862 (Missing Authorization): the gym-scope guard in wger/core/views/user.py compares raw integer gym IDs (userprofile.gym_id != ...) to determine whether a staff member is authorized to act on a given user. In Python, None != None evaluates to False, so the guard silently passes when both the acting staff member and the target user have gym=None. The prior partial fix (GHSA-mhc8-p3jx-84mm) introduced the is_same_gym() helper - which explicitly rejects None values - and applied it to five views in wger/gym/views/. Three write-side views in wger/core/views/user.py were not migrated: the delete view (line 131), UserDeactivateView (line 405), and UserActivateView (line 442). A fourth affected location (UserDetailView.get_context_data, line 587) leaks UI button visibility but its underlying dispatch and trainer_login views retain the patched is_same_gym() helper, blocking the impersonation chain at runtime. Victim user primary keys are sequential integers, trivially enumerable via /en/user/<pk>/overview.
Know when Wger gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
AC:H because both attacker and victim must have gym=None; PR:L for the required gym.manage_gym permission; no confidentiality impact from these three write-side views.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
wger versions through master contain an incomplete authorization bypass in wger/core/views/user.py where three views retain the original gym-scope check using raw integer comparison instead of the is_same_gym() helper, allowing gym staff with gym=None to delete, deactivate, or activate any other user with gym=None. Attackers with gym.manage_gym permission and gym=None affiliation can permanently delete user accounts, lock users out via deactivation, or undo defensive deactivations by exploiting the None != None comparison edge case.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Improper Restriction of Excessive Authentication Attempts in GitHub repository wger-project/wger prior to 2.2. Rated cri
Cross Site Scripting vulnerability in wger Project wger Workout Manager v.2.2.0a3 allows a remote attacker to gain privi
Cross Site Request Forgery (CSRF) vulnerability in wger Project wger Workout Manager 2.2.0a3 allows a remote attacker to
Wger versions up to 2.4 allow authenticated users to access other users' private nutrition plans through insecure direct
Wger versions up to 2.4 expose all users' repetition configuration data to any authenticated attacker due to missing aut
Uncontrolled resource consumption in wger before 2.5 allows any authenticated user to exhaust server worker threads and
wger is a free, open-source workout and fitness manager. Five routine detail action endpoints check a cache before calli
Account-deactivation privilege escalation in wger before 2.6 lets an authenticated user who holds only the gym_trainer r
Cross-user integrity corruption in wger versions prior to 2.6 allows authenticated attackers to inject arbitrary workout
wger before 2.6 contains a CSRF bypass (CWE-352) that lets an attacker-controlled web page silently rebind an authentica
Cross-site request forgery in wger's gym password-reset endpoint allows a remote attacker to force an arbitrary member's
Open redirect in wger's trainer_login view allows an attacker to redirect an authenticated trainer's browser to an arbit
EUVD-2026-72110
GHSA-qc8h-h7c3-v2gh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB