{"answers":{"affected":"7 open source packages ship an affected version, including wagtail. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-39317 in the wild and no public exploit code.","fix":"Upgrade wagtail to a fixed version for your release line: 5.2.6, 6.0.6 or 6.1.3.","what":"CVE-2024-39317 is a medium-severity denial of service vulnerability in wagtail, published on 11 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-39317 and fix it if it is affected.\n\nWhat it is: CVE-2024-39317 is a medium-severity denial of service vulnerability in wagtail, published on 11 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-39317 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- wagtail (PyPI): affected from 2.0; fixed in 5.2.6\n- wagtail (PyPI): affected from 2.0; fixed in 5.2.6\n- wagtail (PyPI): affected from 6.0; fixed in 6.0.6, 6.1.3, 5.2.6\n- wagtail (PyPI): affected from 6.0; fixed in 6.0.6\n- wagtail (PyPI): affected from 6.0; fixed in 6.0.6\n- wagtail (PyPI): affected from 6.1; fixed in 6.1.3\n- wagtail (PyPI): affected from 6.1; fixed in 6.1.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-39317/ (Markdown: https://insights.sbomify.com/CVE-2024-39317/index.md)","id":"CVE-2024-39317","markdown":"https://insights.sbomify.com/CVE-2024-39317/index.md","name":"CVE-2024-39317","record":{"aliases":["GHSA-jmp3-39vp-fwg8","PYSEC-2024-86","ROOT-APP-PYPI-CVE-2024-39317"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Wagtail CMS","requires_auth":"low_privilege","summary":"Attackers can cause denial of service in Wagtail CMS by submitting crafted search queries that trigger excessive processing time in the query parser.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"wagtail","vendor":"torchbox"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Wagtail regular expression denial-of-service via search query parsing","id":"CVE-2024-39317","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":7,"n_references":4,"next":{"headline":"Ibexa Admin UI vulnerable to DOM-based Cross-site Scripting in file upload widget","id":"CVE-2024-39318"},"packages":[{"ecosystem":"PyPI","fixed":["5.2.6"],"introduced":["2.0"],"last_affected":[],"package":"wagtail","purl":null,"source":"GHSA-jmp3-39vp-fwg8"},{"ecosystem":"PyPI","fixed":["5.2.6"],"introduced":["2.0"],"last_affected":[],"package":"wagtail","purl":"pkg:pypi/wagtail","source":"GHSA-jmp3-39vp-fwg8"},{"ecosystem":"PyPI","fixed":["6.0.6","6.1.3","5.2.6"],"introduced":["6.0","6.1","2.0"],"last_affected":[],"package":"wagtail","purl":"pkg:pypi/wagtail","source":"PYSEC-2024-86"},{"ecosystem":"PyPI","fixed":["6.0.6"],"introduced":["6.0"],"last_affected":[],"package":"wagtail","purl":null,"source":"GHSA-jmp3-39vp-fwg8"},{"ecosystem":"PyPI","fixed":["6.0.6"],"introduced":["6.0"],"last_affected":[],"package":"wagtail","purl":"pkg:pypi/wagtail","source":"GHSA-jmp3-39vp-fwg8"},{"ecosystem":"PyPI","fixed":["6.1.3"],"introduced":["6.1"],"last_affected":[],"package":"wagtail","purl":null,"source":"GHSA-jmp3-39vp-fwg8"},{"ecosystem":"PyPI","fixed":["6.1.3"],"introduced":["6.1"],"last_affected":[],"package":"wagtail","purl":"pkg:pypi/wagtail","source":"GHSA-jmp3-39vp-fwg8"}],"prev":{"headline":"Rack ReDoS Vulnerability in HTTP Accept Headers Parsing","id":"CVE-2024-39316"},"products":["wagtail"],"published":"2024-07-11","related":[{"cvss_score":7.3,"headline":"Wagtail: Reflected XSS in dynamic image URL generator view","id":"CVE-2026-54263","kev_date_added":null,"published":"2026-07-01"},{"cvss_score":6.5,"headline":"Wagtail: Improper permission handling in image preview","id":"CVE-2026-54261","kev_date_added":null,"published":"2026-07-01"},{"cvss_score":6.5,"headline":"Wagtail: Improper permission handling when comparing revisions","id":"CVE-2026-44197","kev_date_added":null,"published":"2026-05-11"},{"cvss_score":6.5,"headline":"Wagtail: Improper permission handling when deleting form submissions","id":"CVE-2026-44199","kev_date_added":null,"published":"2026-05-11"},{"cvss_score":6.5,"headline":"Wagtail: Improper permission handling when copying pages","id":"CVE-2026-44200","kev_date_added":null,"published":"2026-05-11"},{"cvss_score":6.4,"headline":"Wagtail vulnerable to stored Cross-site Scripting attack via ModelAdmin views","id":"CVE-2023-28836","kev_date_added":null,"published":"2023-04-03"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["wagtail"]},"summary":"Attackers can cause denial of service in Wagtail CMS by submitting crafted search queries that trigger excessive processing time in the query parser.","url":"https://insights.sbomify.com/CVE-2024-39317/"}