Skip to content
Heist/ feed
Back to feed
Low

Permission check bypass when editing a model with per-field restrictions in wagtail

Type: advisorySources: OSV

Wagtail is an open source content management system built on Django. In affected versions if a model has been made available for editing through the `wagtail.contrib.settings` module or `ModelViewSet`, and the `permission` argument on `FieldPanel` has been used to further restrict access to one or more fields of the model, a user with edit permission over the model but not the specific field can craft an HTTP POST request that bypasses the permission check on the individual field, allowing them to update its value. This vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin, or by a user who has not been granted edit access to the model in question. The editing interfaces for pages and snippets are also unaffected. Patched versions have been released as Wagtail 6.0.3 and 6.1. 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 as follows: 1.For models registered through `ModelViewSet`, register the model as a snippet instead; 2. For settings models, place the restricted fields in a separate settings model, and configure permission at the model level.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-32882
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 09:33 UTC · Revision 1

Source evidence

Permission check bypass when editing a model with per-field restrictions in wagtail

core-osv · Original source

Published 2 May 2024, 06:52 UTC

Wagtail is an open source content management system built on Django. In affected versions if a model has been made available for editing through the `wagtail.contrib.settings` module or `ModelViewSet`, and the `permission` argument on `FieldPanel` has been used to further restrict access to one or more fields of the model, a user with edit permission over the model but not the specific field can craft an HTTP POST request that bypasses the permission check on the individual field, allowing them to update its value. This vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin, or by a user who has not been granted edit access to the model in question. The editing interfaces for pages and snippets are also unaffected. Patched versions have been released as Wagtail 6.0.3 and 6.1. 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 as follows: 1.For models registered through `ModelViewSet`, register the model as a snippet instead; 2. For settings models, place the restricted fields in a separate settings model, and configure permission at the model level.

osv:CVE-2024-32882
Complete source record
{
  "id": "2cc60b7f39c324762e0e4e05f123b0e80e8011a88ee6fc75255d3390003c267b",
  "url": "https://osv.dev/vulnerability/CVE-2024-32882",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Permission check bypass when editing a model with per-field restrictions in wagtail",
    "summary": "Wagtail is an open source content management system built on Django. In affected versions if a model has been made available for editing through the `wagtail.contrib.settings` module or `ModelViewSet`, and the `permission` argument on `FieldPanel` has been used to further restrict access to one or more fields of the model, a user with edit permission over the model but not the specific field can craft an HTTP POST request that bypasses the permission check on the individual field, allowing them to update its value. This vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin, or by a user who has not been granted edit access to the model in question. The editing interfaces for pages and snippets are also unaffected. Patched versions have been released as Wagtail 6.0.3 and 6.1. 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 as follows: 1.For models registered through `ModelViewSet`, register the model as a snippet instead; 2. For settings models, place the restricted fields in a separate settings model, and configure permission at the model level.",
    "evidence": "osv:CVE-2024-32882",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2024-32882",
      "aliases": [
        "CVE-2024-32882",
        "GHSA-w2v8-php4-p8hc",
        "PYSEC-2026-2031"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/wagtail/wagtail",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b5e068e6a64bec98d7670c00f39d92fe3a3d22db"
                },
                {
                  "fixed": "ab2a5d82b4ee3c909d2456704388ccf90e367c9b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "6.0.0"
                      },
                      {
                        "fixed": "6.0.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ab2a5d82b4ee3c909d2456704388ccf90e367c9b"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.0.2",
            "v6.0.1",
            "v6.0",
            "v6.0rc1",
            "v4.1rc1",
            "v2.16rc1",
            "v2.11.rc1",
            "v2.8rc1",
            "v2.2rc1",
            "v1.10rc1",
            "v1.8rc1",
            "v1.6rc1",
            "v1.5rc1",
            "v1.4rc1",
            "v1.3rc1",
            "v1.2rc1",
            "v1.1rc1",
            "v1.0rc1",
            "v1.0b2",
            "v0.8.1",
            "v0.8",
            "v0.7",
            "v0.6",
            "v0.5",
            "v0.4",
            "v0.2",
            "v0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32882.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.973876418Z",
      "provider": "osv",
      "references": [
        "https://docs.wagtail.org/en/stable/extending/generic_views.html#modelviewset",
        "https://docs.wagtail.org/en/stable/reference/contrib/settings.html",
        "https://docs.wagtail.org/en/stable/reference/pages/panels.html#wagtail.admin.panels.FieldPanel.permission",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32882.json",
        "https://github.com/wagtail/wagtail/security/advisories/GHSA-w2v8-php4-p8hc",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-32882",
        "https://github.com/wagtail/wagtail/commit/ab2a5d82b4ee3c909d2456704388ccf90e367c9b"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-280",
          "CWE-281"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32882.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-32882",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 515087,
  "published_at": "2024-05-02T06:52:59.556+00:00"
}