Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40474: CWE-284: Improper Access Control in wger-project wger

0
High
VulnerabilityCVE-2026-40474cvecve-2026-40474cwe-284cwe-862
Published: Fri Apr 17 2026 (04/17/2026, 21:39:03 UTC)
Source: CVE Database V5
Vendor/Project: wger-project
Product: 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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/17/2026, 22:08:09 UTC

Technical Analysis

In wger versions prior to 2.5, the GymConfigUpdateView class specifies a permission requirement ('config.change_gymconfig') but inherits from WgerFormMixin instead of WgerPermissionMixin, causing the permission check to be bypassed at runtime. Because GymConfig is an ownerless singleton, any authenticated user can modify the global gym configuration. This modification triggers side effects such as bulk-updating user profile gym assignments, effectively escalating privileges vertically to control the entire installation's configuration. The vulnerability is addressed in wger version 2.5.

Potential Impact

An authenticated user without proper permissions can modify the global gym configuration, resulting in a vertical privilege escalation. This allows unauthorized changes affecting all users of the installation, potentially impacting data integrity and system behavior. The CVSS score of 7.6 (high) reflects the network attack vector, low attack complexity, required privileges, no user interaction, and significant impact on integrity and availability.

Mitigation Recommendations

Upgrade to wger version 2.5 or later, where this vulnerability is fixed by proper enforcement of permission checks in GymConfigUpdateView. Since no official patch link or advisory is provided, users should verify the version and update accordingly. Patch status is not explicitly confirmed beyond the fix in version 2.5, so check the vendor's repository or release notes for confirmation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/17/2026, 10:08:09 PM

Last updated: 4/21/2026, 8:55:59 AM

Views: 32

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses