CVE-2024-39317

Wagtail regular expression denial-of-service via search query parsing

Description

Wagtail is an open source content management system built on Django. A bug in Wagtail's `parse_query_string` would result in it taking a long time to process suitably crafted inputs. When used to parse sufficiently long strings of characters without a space, `parse_query_string` would take an unexpectedly large amount of time to process, resulting in a denial of service. In an initial Wagtail installation, the vulnerability can be exploited by any Wagtail admin user. It cannot be exploited by end users. If your Wagtail site has a custom search implementation which uses `parse_query_string`, it may be exploitable by other users (e.g. unauthenticated users). Patched versions have been released as Wagtail 5.2.6, 6.0.6 and 6.1.3.

Category

6.5
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.57%
Third-Party Advisory github.com
Affected: wagtail wagtail
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-39317?
CVE-2024-39317 has been scored as a medium severity vulnerability.
How to fix CVE-2024-39317?
To fix CVE-2024-39317, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-39317 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-39317 is being actively exploited. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-39317?
CVE-2024-39317 affects wagtail wagtail.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.