# CVE-2024-39317: Wagtail regular expression denial-of-service via search query parsing

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2024-07-11T13:21:42.000Z
- Modified: 2026-06-17T07:41:42.190Z
- Also known as: GHSA-jmp3-39vp-fwg8, PYSEC-2024-86
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- wagtail wagtail: >= 2.0, < 5.2.6; >= 6.0, < 6.0.6; >= 6.1, < 6.1.3
- wagtail (PyPI): from 6.0 before 6.0.6; from 6.1 before 6.1.3; from 2.0 before 5.2.6; before 31b1e8532dfb1b70d8d37d22aff9cbde9109cdf2; before 3c941136f79c48446e3858df46e5b668d7f83797; before b783c096b6d4fd2cfc05f9137a0be288850e99a2
- torchbox wagtail: from 2.0 before 5.2.6; from 6.0 before 6.0.6; from 6.1 before 6.1.3

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/wagtail/wagtail/security/advisories/GHSA-jmp3-39vp-fwg8> (advisory, third-party-advisory, web)
- <https://github.com/wagtail/wagtail/commit/31b1e8532dfb1b70d8d37d22aff9cbde9109cdf2> (fix, patch, web)
- <https://github.com/wagtail/wagtail/commit/3c941136f79c48446e3858df46e5b668d7f83797> (fix, patch, web)
- <https://github.com/wagtail/wagtail/commit/b783c096b6d4fd2cfc05f9137a0be288850e99a2> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39317> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2024-86.yaml> (web)
- <https://github.com/wagtail/wagtail> (package)

## Sources

- CVE List: [CVE-2024-39317](https://www.cve.org/CVERecord?id=CVE-2024-39317), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-jmp3-39vp-fwg8](https://github.com/advisories/GHSA-jmp3-39vp-fwg8), CC-BY-4.0, modified 2026-06-09
- NVD: [CVE-2024-39317](https://nvd.nist.gov/vuln/detail/CVE-2024-39317), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-86](https://osv.dev/vulnerability/PYSEC-2024-86), CC-BY-4.0, modified 2026-06-08

---

Page: https://cve.day/CVE-2024-39317 · Whole record: https://cve.day/CVE-2024-39317.json · Rebuilt by cve.day 2026-11-25T22:58:42.788Z
