Wagtail 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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-39317
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 18:13 UTC · Revision 1
Source evidence
Wagtail regular expression denial-of-service via search query parsing
core-osv · Original sourcePublished 11 Jul 2024, 15:23 UTC
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.
osv:CVE-2024-39317
Complete source record
{
"id": "a718a3aac2b0fc6131fc9a822e3346cd7432127d9156a6a5756fc08154ab0733",
"url": "https://osv.dev/vulnerability/CVE-2024-39317",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Wagtail regular expression denial-of-service via search query parsing",
"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.",
"evidence": "osv:CVE-2024-39317",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-39317",
"aliases": [
"CVE-2024-39317",
"GHSA-jmp3-39vp-fwg8",
"PYSEC-2024-86"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/wagtail/wagtail",
"type": "GIT",
"events": [
{
"introduced": "c612b01e3ad77724808da2659acdecb5555b82ff"
},
{
"fixed": "3ee28ee8b2554232a8854035277d442e46975b0c"
},
{
"introduced": "44f438fc1f56cd1d7855cf3815bb5e3bf0554bc2"
},
{
"fixed": "24fb4064e5b71d0ec6fd2d354df07718841e1ad5"
},
{
"introduced": "fc4d2d0e735ae5f99162683efbd33ab35dd7f8e5"
},
{
"fixed": "7af87e08b9d1924a89db449a24d5426c7e65ecac"
},
{
"fixed": "31b1e8532dfb1b70d8d37d22aff9cbde9109cdf2"
},
{
"fixed": "3c941136f79c48446e3858df46e5b668d7f83797"
},
{
"fixed": "b783c096b6d4fd2cfc05f9137a0be288850e99a2"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.0"
},
{
"fixed": "5.2.6"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "6.0"
},
{
"fixed": "6.0.6"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "6.1"
},
{
"fixed": "6.1.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "31b1e8532dfb1b70d8d37d22aff9cbde9109cdf2"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "3c941136f79c48446e3858df46e5b668d7f83797"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "b783c096b6d4fd2cfc05f9137a0be288850e99a2"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v6.0.5",
"v6.1.2",
"v6.0.4",
"v6.1.1",
"v6.0.3",
"v6.1",
"v6.0.2",
"v6.0.1",
"v6.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39317.json"
}
}
],
"modified": "2026-10-28T02:30:38.246614276Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39317.json",
"https://github.com/wagtail/wagtail/security/advisories/GHSA-jmp3-39vp-fwg8",
"https://nvd.nist.gov/vuln/detail/CVE-2024-39317",
"https://github.com/wagtail/wagtail/commit/31b1e8532dfb1b70d8d37d22aff9cbde9109cdf2",
"https://github.com/wagtail/wagtail/commit/3c941136f79c48446e3858df46e5b668d7f83797",
"https://github.com/wagtail/wagtail/commit/b783c096b6d4fd2cfc05f9137a0be288850e99a2"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1333"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39317.json"
}
},
"related_cves": [
{
"value": "CVE-2024-39317",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 505607,
"published_at": "2024-07-11T15:23:22.307+00:00"
}