CVE-2024-39317
MEDIUM 4.9CVSS 3.1Wagtail regular expression denial-of-service via search query parsing
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.
- Published
- 11 Jul 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1333
- Also known as
- GHSA-jmp3-39vp-fwg8PYSEC-2024-86
- Sources
- NVDJSONOSV GHSA-jmp3-39vp-fwg8JSONOSV PYSEC-2024-86JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | torchbox | wagtailcpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:* |
>= 2.0, < 5.2.6 | 5.2.6 |
| NVD | torchbox | wagtailcpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:* |
>= 6.0, < 6.0.6 | 6.0.6 |
| NVD | torchbox | wagtailcpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:* |
>= 6.1, < 6.1.3 | 6.1.3 |
| OSV | PyPI | wagtail | >= 6.0, < 6.0.6 | 6.0.6 |
| OSV | PyPI | wagtail | >= 6.1, < 6.1.3 | 6.1.3 |
| OSV | PyPI | wagtail | >= 2.0, < 5.2.6 | 5.2.6 |
| OSV | PyPI | wagtail | >= 6.0, < 6.0.6; >= 6.1, < 6.1.3; >= 2.0, < 5.2.6 | 6.0.6, 6.1.3, 5.2.6 |
References
- https://github.com/wagtail/wagtail/commit/31b1e8532dfb1b70d8d37d22aff9cbde9109cdf2 · Patch, WEB, FIX
- https://github.com/wagtail/wagtail/commit/3c941136f79c48446e3858df46e5b668d7f83797 · Patch, WEB, FIX
- https://github.com/wagtail/wagtail/commit/b783c096b6d4fd2cfc05f9137a0be288850e99a2 · Patch, WEB, FIX
- https://github.com/wagtail/wagtail/security/advisories/GHSA-jmp3-39vp-fwg8 · Third Party Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 11 Jul 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 Jul 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Jul 2024)