CVE-2024-35228: Wagtail Improper Handling Of Insufficient Permissions Vulnerability
MODERATECVE-2024-35228 is a MODERATE (CVSS 5.5) improper handling of insufficient permissions vulnerability (CWE-280: Improper Handling of Insufficient Permissions or Privileges) affecting Wagtail libraries in the PyPI ecosystem. The issue involves improper handling of insufficient permissions in `wagtail.contrib.settings`. Remediation is available by upgrading affected packages to version 6.0.5, 6.1.2.
CVE-2024-35228 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:N).
How to Fix CVE-2024-35228
To remediate this vulnerability, upgrade all affected Wagtail dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install wagtail>=6.0.5
pip install wagtail>=6.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show wagtail
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-35228, inspect your installed packages using pip:
pip show wagtail
Analyze the terminal output to locate any version of Wagtail in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.5), your application is affected.
Note: The pip show wagtail command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-280: Improper Handling of Insufficient Permissions or Privileges, where the product does not handle or incorrectly handles when it has insufficient privileges to access resources or functionality as specified by their permissions. this may cause it to follow unexpected code paths that may leave the product in an invalid state. In Wagtail, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-35228 Affected Wagtail Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wagtail
|
PyPI |
≥ 6.0.0
< 6.0.5
|
6.0.5
|
|
wagtail
|
PyPI |
≥ 6.1.0
< 6.1.2
|
6.1.2
|
References
Frequently Asked Questions
What is CVE-2024-35228?
Which Wagtail versions are affected?
What version fixes CVE-2024-35228?
Is wagtail affected?
What is the CVSS score of CVE-2024-35228?
What CWE is associated with CVE-2024-35228?
How can I check PyPI dependencies for CVE-2024-35228?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xxfm-vmcf-g33f",
"modified" : "2024-06-02T22:28:28Z",
"published" : "2024-06-02T22:28:28Z",
"aliases" : [ "CVE-2024-35228" ],
"summary" : "Improper Handling of Insufficient Permissions in `wagtail.contrib.settings`",
"details" : "### Impact\nDue 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.\n\n### Patches\nPatched versions have been released as Wagtail 6.0.5 and 6.1.2. Wagtail releases prior to 6.0 are unaffected.\n\n### Workarounds\n\nNo workaround is available.\n\n### Acknowledgements\n\nMany thanks to Victor Miti for reporting this issue.\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Visit Wagtail's [support channels](https://docs.wagtail.io/en/stable/support.html)\n* Email us at [security@wagtail.org](mailto:security@wagtail.org) (view our [security policy](https://github.com/wagtail/wagtail/security/policy) for more information).\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "wagtail"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.0.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "wagtail"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.1.0"
}, {
"fixed" : "6.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/wagtail/wagtail/security/advisories/GHSA-xxfm-vmcf-g33f"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-35228"
}, {
"type" : "WEB",
"url" : "https://github.com/wagtail/wagtail/commit/284f75a6f91f7ab18cc304d7d34f33b559ae37b1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wagtail/wagtail"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-280" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-02T22:28:28Z",
"nvd_published_at" : "2024-05-30T19:15:16Z"
}
}