CVE-2024-39317 json
Wagtail regular expression denial-of-service via search query parsing
published 2024-07-11 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-0186 , GHSA-jmp3-39vp-fwg8 , PYSEC-2024-86
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 49%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi wagtail 5.2.6, 6.0.6, 6.1.3
- torchbox wagtail 5.2.6, 6.0.6, 6.1.3
- wagtail wagtail 5.2.6, 6.0.6, 6.1.3
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.61% chance of exploitation in the next 30 days, higher than 49% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| 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 |
Affected products
- wagtail wagtail
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/wagtail/wagtail/commit/31b1e8532dfb1b70d8d37d22aff9cbde9109cdf2
web, patch
-
github.com
/wagtail/wagtail/commit/3c941136f79c48446e3858df46e5b668d7f83797
web, patch
-
github.com
/wagtail/wagtail/commit/b783c096b6d4fd2cfc05f9137a0be288850e99a2
web, patch
-
github.com
/wagtail/wagtail/security/advisories/GHSA-jmp3-39vp-fwg8
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-39317
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2024-86.yaml
web
-
github.com
/wagtail/wagtail
package
Sources
- CVE List CVE-2024-39317
- GitHub Advisory GHSA-jmp3-39vp-fwg8
- NVD CVE-2024-39317
- OSV PYSEC-2024-86
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.