CVE-2026-40474: CWE-284: Improper Access Control in wger-project wger
wger is a free, open-source workout and fitness manager. In versions 2.5 and below, the GymConfigUpdateView declares permission_required = 'config.change_gymconfig' but inherits WgerFormMixin instead of WgerPermissionMixin, so the permission is never enforced at runtime. Since GymConfig is an ownerless singleton, any authenticated user can modify the global gym configuration, triggering save() side effects that bulk-update user profile gym assignments — a vertical privilege escalation to installation-wide configuration control. This issue is fixed in version 2.5.
AI Analysis
Technical Summary
In wger versions 2.5 and below, the GymConfigUpdateView sets a permission requirement ('config.change_gymconfig') but inherits from WgerFormMixin instead of WgerPermissionMixin, causing the permission check to be bypassed at runtime. Since GymConfig is a singleton without an owner, any authenticated user can modify it, triggering side effects that bulk-update user profile gym assignments. This results in a vertical privilege escalation allowing unauthorized users to control global gym configuration. The vulnerability is addressed in version 2.5.
Potential Impact
An authenticated user with low privileges can escalate their permissions to gain control over the global gym configuration, affecting all users in the installation. This can lead to unauthorized changes impacting user profiles and gym assignments, compromising integrity and potentially availability of the service.
Mitigation Recommendations
Upgrade wger to version 2.5 or later, where this improper access control vulnerability is fixed. Patch status is not explicitly stated but the issue is resolved in version 2.5, so applying this official fix is recommended.
CVE-2026-40474: CWE-284: Improper Access Control in wger-project wger
Description
wger is a free, open-source workout and fitness manager. In versions 2.5 and below, the GymConfigUpdateView declares permission_required = 'config.change_gymconfig' but inherits WgerFormMixin instead of WgerPermissionMixin, so the permission is never enforced at runtime. Since GymConfig is an ownerless singleton, any authenticated user can modify the global gym configuration, triggering save() side effects that bulk-update user profile gym assignments — a vertical privilege escalation to installation-wide configuration control. This issue is fixed in version 2.5.
CVSS v3.1
Score 7.6high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In wger versions 2.5 and below, the GymConfigUpdateView sets a permission requirement ('config.change_gymconfig') but inherits from WgerFormMixin instead of WgerPermissionMixin, causing the permission check to be bypassed at runtime. Since GymConfig is a singleton without an owner, any authenticated user can modify it, triggering side effects that bulk-update user profile gym assignments. This results in a vertical privilege escalation allowing unauthorized users to control global gym configuration. The vulnerability is addressed in version 2.5.
Potential Impact
An authenticated user with low privileges can escalate their permissions to gain control over the global gym configuration, affecting all users in the installation. This can lead to unauthorized changes impacting user profiles and gym assignments, compromising integrity and potentially availability of the service.
Mitigation Recommendations
Upgrade wger to version 2.5 or later, where this improper access control vulnerability is fixed. Patch status is not explicitly stated but the issue is resolved in version 2.5, so applying this official fix is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-13T19:50:42.113Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e2abc2bdfbbecc5996b9f5
Added to database: 4/17/2026, 9:53:06 PM
Last enriched: 4/25/2026, 2:51:43 AM
Last updated: 6/7/2026, 12:03:50 PM
Views: 73
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.