{"cve":"CVE-2026-40474","nvd":{"published":"2026-04-17T22:16:33.213","modified":"2026-06-17T10:45:20.737","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","score":7.6},"cwes":["CWE-284","CWE-862"],"references":["https://github.com/wger-project/wger/commit/47ee5af93b3ced24b9f94b0a8b9296b50bc9523f","https://github.com/wger-project/wger/releases/tag/2.5","https://github.com/wger-project/wger/security/advisories/GHSA-xppv-4jrx-qf8m"],"products":["wger:wger"],"source":"nvd","synced_at":"2026-10-19T22:30:49.762551342+00:00"},"epss":{"cve":"CVE-2026-40474","score":0.00333,"percentile":0.26559,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xppv-4jrx-qf8m","url":"https://osv.dev/vulnerability/GHSA-xppv-4jrx-qf8m","summary":"wger has Broken Access Control in Global Gym Configuration Update Endpoint","modified":"2026-07-13T16:42:33.591878815Z","packages":[{"ecosystem":"PyPI","name":"wger","purl":"pkg:pypi/wger","ranges":["<=2.1"],"fixed":[]}]},{"id":"PYSEC-2026-3424","url":"https://osv.dev/vulnerability/PYSEC-2026-3424","summary":"wger has Broken Access Control in Global Gym Configuration Update Endpoint","modified":"2026-07-13T16:33:33.110777734Z","packages":[{"ecosystem":"PyPI","name":"wger","purl":"pkg:pypi/wger","ranges":["<=2.1"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}