CVE-2026-40474 wger has Broken Access Control in the Global Gym Configuration Update Endpoint
HighCVSS 7.6
EPSS 0.35%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi wger(PyPI) | <= 2.1; = 1.1; = 1.1.1; = 1.2 +11 more | after 2.1 | Fixed |
| wger | < 2.5 | 2.5 | Fixed |
| wger-project wger | = < 2.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi wger(PyPI) | <= 2.1 | No fix listed |
| pypi wger(PyPI) | = 1.1 | No fix listed |
| pypi wger(PyPI) | = 1.1.1 | No fix listed |
| pypi wger(PyPI) | = 1.2 | No fix listed |
| pypi wger(PyPI) | = 1.2rc1 | No fix listed |
| pypi wger(PyPI) | = 1.3 | No fix listed |
| pypi wger(PyPI) | = 1.4 | No fix listed |
| pypi wger(PyPI) | = 1.5 | No fix listed |
| pypi wger(PyPI) | = 1.6 | No fix listed |
| pypi wger(PyPI) | = 1.6.1 | No fix listed |
| pypi wger(PyPI) | = 1.7 | No fix listed |
| pypi wger(PyPI) | = 1.8 | No fix listed |
| pypi wger(PyPI) | = 1.9 | No fix listed |
| pypi wger(PyPI) | = 2.0 | No fix listed |
| pypi wger(PyPI) | = 2.1 | No fix listed |
| wger-project wger | = < 2.5 | No fix listed |
| wger | < 2.5 | 2.5 |
References
- https://github.com/wger-project/wger/security/advisories/GHSA-xppv-4jrx-qf8m exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/wger-project/wger/commit/47ee5af93b3ced24b9f94b0a8b9296b50bc9523f patch
- github.com product
- https://github.com/wger-project/wger/releases/tag/2.5 release-notes
- pypi.org product
- github.com vendor-advisory