CVE-2024-35228
JSON

5.5medium

Improper Handling of Insufficient Permissions in Wagtail

Severity
5.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.33% (higher than 28% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xxfm-vmcf-g33fPYSEC-2026-2032

Description

Wagtail is an open source content management system built on Django. Due to an improperly applied permission check in the `wagtail.contrib.settings` module, a user with access to the Wagtail admin and knowledge of the URL of the edit view for a settings model can access and update that setting, even when they have not been granted permission over the model. The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin. Patched versions have been released as Wagtail 6.0.5 and 6.1.2. Wagtail releases prior to 6.0 are unaffected. Users are advised to upgrade. Site owners who are unable to upgrade to a patched version can avoid the vulnerability in `ModelViewSet` by registering the model as a snippet instead. No workaround is available for `wagtail.contrib.settings`.

Affected

Product or packageVersionsReported by
wagtail wagtail>= 6.0.0, < 6.0.5, >= 6.1.0, < 6.1.2CVE List
wagtail (PyPI)from 6.0.0 before 6.0.5, from 6.1.0 before 6.1.2GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M5.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:N
GitHub5.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:N
PyPA Advisory Database5.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:N

Classification

CWE-280

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Wagtail is an open source content management system built on Django. Due to an improperly applied permission check in the `wagtail.contrib.settings` module, a user with access to the Wagtail admin and knowledge of the URL of the edit view for a settings model can access and update that setting, even when they have not been granted permission over the model. The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin. Patched versions have been released as Wagtail 6.0.5 and 6.1.2. Wagtail releases prior to 6.0 are unaffected. Users are advised to upgrade. Site owners who are unable to upgrade to a patched version can avoid the vulnerability in `ModelViewSet` by registering the model as a snippet instead. No workaround is available for `wagtail.contrib.settings`.

GitHub Advisory Database
Impact

Due to an improperly applied permission check in the wagtail.contrib.settings module, a user with access to the Wagtail admin and knowledge of the URL of the edit view for a settings model can access and update that setting, even when they have not been granted permission over the model. The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin.

Patches

Patched versions have been released as Wagtail 6.0.5 and 6.1.2. Wagtail releases prior to 6.0 are unaffected.

Workarounds

No workaround is available.

Acknowledgements

Many thanks to Victor Miti for reporting this issue.

For more information

If you have any questions or comments about this advisory:

NVD (es)

Wagtail es un sistema de gestión de contenidos de código abierto construido sobre Django. Debido a una verificación de permisos aplicada incorrectamente en el módulo `wagtail.contrib.settings`, un usuario con acceso al administrador de Wagtail y conocimiento de la URL de la vista de edición para un modelo de configuración puede acceder y actualizar esa configuración, incluso cuando tiene No se le ha concedido permiso sobre el modelo. La vulnerabilidad no es explotable por un visitante normal del sitio sin acceso al administrador de Wagtail. Se han lanzado versiones parcheadas como Wagtail 6.0.5 y 6.1.2. Las versiones de Wagtail anteriores a la 6.0 no se ven afectadas. Se recomienda a los usuarios que actualicen. Los propietarios de sitios que no puedan actualizar a una versión parcheada pueden evitar la vulnerabilidad en "ModelViewSet" registrando el modelo como un fragmento. No hay ningún workaround disponible para `wagtail.contrib.settings`.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-35228 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-xxfm-vmcf-g33f changed 2026-09-10CC-BY-4.0
NVDCVE-2024-35228 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-2032 changed 2026-07-07CC-BY-4.0