{"answers":{"affected":"2 open source packages ship an affected version, including modsecurity and modsecurity2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-47947 exists.","fix":"Upgrade modsecurity to 3.0.12 or later.","what":"CVE-2025-47947 is a high-severity denial of service vulnerability in owasp-modsecurity ModSecurity, published on 21 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-47947 and fix it if it is affected.\n\nWhat it is: CVE-2025-47947 is a high-severity denial of service vulnerability in owasp-modsecurity ModSecurity, published on 21 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-47947 exists.\n\nAffected packages and fixed versions:\n- modsecurity (Bitnami): affected all versions; fixed in 3.0.12\n- modsecurity2 (Bitnami): affected all versions; fixed in 2.9.9\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-2025-47947/ (Markdown: https://insights.sbomify.com/CVE-2025-47947/index.md)","id":"CVE-2025-47947","markdown":"https://insights.sbomify.com/CVE-2025-47947/index.md","name":"CVE-2025-47947","record":{"aliases":["ALSA-2025:8837","ALSA-2025:8844","AZL-62426","BIT-modsecurity-2025-47947","BIT-modsecurity2-2025-47947","CLSA-2025-1762421346","DEBIAN-CVE-2025-47947","DLA-4192-1","GHSA-859r-vvv8-rm8r","OESA-2025-1562","OESA-2025-1563","RHSA-2025:8605","RHSA-2025:8626","RHSA-2025:8627","RHSA-2025:8674","RHSA-2025:8837","RHSA-2025:8844","RHSA-2025:8917","RHSA-2025:8922","RHSA-2025:8937","RLSA-2025:8837","RLSA-2025:8844","UBUNTU-CVE-2025-47947"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Web Application Firewall","requires_auth":"none","summary":"Attackers can cause denial of service in ModSecurity when processing JSON payloads with specific sanitization rules, requiring a patch to mitigate.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"modsecurity","vendor":"trustwave"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-1050","name":"Excessive Platform Resource Consumption within a Loop"}],"description":"ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Versions up to and including 2.9.8 are vulnerable to denial of service in one special case (in stable released versions): when the payload's content type is `application/json`, and there is at least one rule which does a `sanitiseMatchedBytes` action. A patch is available at pull request 3389 and expected to be part of version 2.9.9. No known workarounds are available.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_tus:8.6::appstream","Red Hat:rhel_tus:8.8::appstream","Rocky Linux:8","Rocky Linux:9"],"exploits":{"exploitdb":0,"first_seen":"2026-10-01","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-10-01T18:20:00Z","kind":"github_poc","ref":"https://github.com/yel1337/CVE-2025-47947","stars":0,"title":"POC for libapache2-mod-security2"}],"tier":"weaponised"},"has_fix":true,"headline":"ModSecurity Has Possible DoS Vulnerability","id":"CVE-2025-47947","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":68,"n_references":2,"next":{"headline":"Cocotais Bot has builtin .echo command injection","id":"CVE-2025-47948"},"packages":[{"ecosystem":"Bitnami","fixed":["3.0.12"],"introduced":["0"],"last_affected":[],"package":"modsecurity","purl":"pkg:bitnami/modsecurity","source":"BIT-modsecurity-2025-47947"},{"ecosystem":"Bitnami","fixed":["2.9.9"],"introduced":["0"],"last_affected":[],"package":"modsecurity2","purl":"pkg:bitnami/modsecurity2","source":"BIT-modsecurity2-2025-47947"},{"ecosystem":"AlmaLinux:8","fixed":["2.9.6-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"mod_security","purl":"pkg:rpm/almalinux/mod_security","source":"ALSA-2025:8844"},{"ecosystem":"AlmaLinux:8","fixed":["2.9.6-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc","purl":"pkg:rpm/almalinux/mod_security-mlogc","source":"ALSA-2025:8844"},{"ecosystem":"AlmaLinux:9","fixed":["2.9.6-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"mod_security","purl":"pkg:rpm/almalinux/mod_security","source":"ALSA-2025:8837"},{"ecosystem":"AlmaLinux:9","fixed":["2.9.6-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc","purl":"pkg:rpm/almalinux/mod_security-mlogc","source":"ALSA-2025:8837"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.9.6-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"mod_security","purl":"pkg:rpm/redhat/mod_security","source":"RHSA-2025:8844"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.9.6-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"mod_security-debuginfo","purl":"pkg:rpm/redhat/mod_security-debuginfo","source":"RHSA-2025:8844"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.9.6-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"mod_security-debugsource","purl":"pkg:rpm/redhat/mod_security-debugsource","source":"RHSA-2025:8844"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.9.6-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc","purl":"pkg:rpm/redhat/mod_security-mlogc","source":"RHSA-2025:8844"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.9.6-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc-debuginfo","purl":"pkg:rpm/redhat/mod_security-mlogc-debuginfo","source":"RHSA-2025:8844"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.9.6-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"mod_security","purl":"pkg:rpm/redhat/mod_security","source":"RHSA-2025:8837"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.9.6-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"mod_security-debuginfo","purl":"pkg:rpm/redhat/mod_security-debuginfo","source":"RHSA-2025:8837"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.9.6-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"mod_security-debugsource","purl":"pkg:rpm/redhat/mod_security-debugsource","source":"RHSA-2025:8837"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.9.6-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc","purl":"pkg:rpm/redhat/mod_security-mlogc","source":"RHSA-2025:8837"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.9.6-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc-debuginfo","purl":"pkg:rpm/redhat/mod_security-mlogc-debuginfo","source":"RHSA-2025:8837"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:2.9.2-8.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"mod_security","purl":"pkg:rpm/redhat/mod_security","source":"RHSA-2025:8626"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:2.9.2-8.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-debuginfo","purl":"pkg:rpm/redhat/mod_security-debuginfo","source":"RHSA-2025:8626"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:2.9.2-8.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-debugsource","purl":"pkg:rpm/redhat/mod_security-debugsource","source":"RHSA-2025:8626"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:2.9.2-8.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc","purl":"pkg:rpm/redhat/mod_security-mlogc","source":"RHSA-2025:8626"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:2.9.2-8.el8_2.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc-debuginfo","purl":"pkg:rpm/redhat/mod_security-mlogc-debuginfo","source":"RHSA-2025:8626"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:2.9.2-9.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"mod_security","purl":"pkg:rpm/redhat/mod_security","source":"RHSA-2025:8627"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:2.9.2-9.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-debuginfo","purl":"pkg:rpm/redhat/mod_security-debuginfo","source":"RHSA-2025:8627"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:2.9.2-9.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-debugsource","purl":"pkg:rpm/redhat/mod_security-debugsource","source":"RHSA-2025:8627"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:2.9.2-9.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc","purl":"pkg:rpm/redhat/mod_security-mlogc","source":"RHSA-2025:8627"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:2.9.2-9.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc-debuginfo","purl":"pkg:rpm/redhat/mod_security-mlogc-debuginfo","source":"RHSA-2025:8627"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:2.9.2-9.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"mod_security","purl":"pkg:rpm/redhat/mod_security","source":"RHSA-2025:8605"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:2.9.2-9.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-debuginfo","purl":"pkg:rpm/redhat/mod_security-debuginfo","source":"RHSA-2025:8605"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:2.9.2-9.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-debugsource","purl":"pkg:rpm/redhat/mod_security-debugsource","source":"RHSA-2025:8605"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:2.9.2-9.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc","purl":"pkg:rpm/redhat/mod_security-mlogc","source":"RHSA-2025:8605"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:2.9.2-9.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc-debuginfo","purl":"pkg:rpm/redhat/mod_security-mlogc-debuginfo","source":"RHSA-2025:8605"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:2.9.2-9.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"mod_security","purl":"pkg:rpm/redhat/mod_security","source":"RHSA-2025:8605"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:2.9.2-9.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-debuginfo","purl":"pkg:rpm/redhat/mod_security-debuginfo","source":"RHSA-2025:8605"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:2.9.2-9.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-debugsource","purl":"pkg:rpm/redhat/mod_security-debugsource","source":"RHSA-2025:8605"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:2.9.2-9.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc","purl":"pkg:rpm/redhat/mod_security-mlogc","source":"RHSA-2025:8605"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:2.9.2-9.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc-debuginfo","purl":"pkg:rpm/redhat/mod_security-mlogc-debuginfo","source":"RHSA-2025:8605"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:2.9.6-1.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"mod_security","purl":"pkg:rpm/redhat/mod_security","source":"RHSA-2025:8674"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:2.9.6-1.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-debuginfo","purl":"pkg:rpm/redhat/mod_security-debuginfo","source":"RHSA-2025:8674"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:2.9.6-1.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-debugsource","purl":"pkg:rpm/redhat/mod_security-debugsource","source":"RHSA-2025:8674"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:2.9.6-1.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"mod_security-mlogc","purl":"pkg:rpm/redhat/mod_security-mlogc","source":"RHSA-2025:8674"}],"prev":{"headline":"Symfony UX allows unsanitized HTML attribute injection via ComponentAttributes","id":"CVE-2025-47946"},"products":["ModSecurity"],"published":"2025-05-21","related":[{"cvss_score":7.9,"headline":"Libmodsecurity3 has possible bypass of encoded HTML entities","id":"CVE-2025-27110","kev_date_added":null,"published":"2025-02-25"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2024-46292","kev_date_added":null,"published":"2024-10-09"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-22","vendors":["owasp-modsecurity"]},"summary":"Attackers can cause denial of service in ModSecurity when processing JSON payloads with specific sanitization rules, requiring a patch to mitigate.","url":"https://insights.sbomify.com/CVE-2025-47947/"}