CVE-2024-28865: Wiki Denial of Service Vulnerability
HIGHCVE-2024-28865 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Wiki libraries in the PyPI ecosystem. The issue involves denial of service via regular expression. Remediation is available by upgrading affected packages to version 0.10.1.
CVE-2024-28865 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2024-28865
To remediate this vulnerability, upgrade all affected Wiki 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 wiki>=0.10.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show wiki
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-28865, inspect your installed packages using pip:
pip show wiki
Analyze the terminal output to locate any version of Wiki in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.1), your application is affected.
Note: The pip show wiki command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Wiki, 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-28865 Affected Wiki Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wiki
|
PyPI |
< 0.10.1
|
0.10.1
|
References
Frequently Asked Questions
What is CVE-2024-28865?
Which Wiki versions are affected?
What version fixes CVE-2024-28865?
Is wiki affected?
What is the CVSS score of CVE-2024-28865?
What CWE is associated with CVE-2024-28865?
How can I check PyPI dependencies for CVE-2024-28865?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wj85-w4f4-xh8h",
"modified" : "2024-03-19T18:30:57Z",
"published" : "2024-03-18T20:37:48Z",
"aliases" : [ "CVE-2024-28865" ],
"summary" : "Denial of service via regular expression",
"details" : "### Impact\n\nAll historical installations of django-wiki are vulnerable to maliciously crafted article content, that can cause severe use of server CPU through a regular expression loop.\n\n### Patches\n\n\n\n### Workarounds\n\nClose off access to create and edit articles by anonymous users.\n\n### References\n_Are there any links users can visit to find out more?_\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "wiki"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.10.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/django-wiki/django-wiki/security/advisories/GHSA-wj85-w4f4-xh8h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-28865"
}, {
"type" : "WEB",
"url" : "https://github.com/django-wiki/django-wiki/commit/8e280fd6c0bd27ce847c67b2d216c6cbf920f88c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/django-wiki/django-wiki"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-18T20:37:48Z",
"nvd_published_at" : "2024-03-18T22:15:09Z"
}
}