{"answers":{"affected":"9 open source packages ship an affected version, including rails and actionmailer.","exploited":"There is no known exploitation of CVE-2024-47889 in the wild and no public exploit code.","fix":"Upgrade rails to a fixed version for your release line: 6.1.8, 7.0.9, 7.1.4 or 7.2.2.","what":"CVE-2024-47889 is a medium-severity denial of service vulnerability in rails, published on 16 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-47889 and fix it if it is affected.\n\nWhat it is: CVE-2024-47889 is a medium-severity denial of service vulnerability in rails, published on 16 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-47889 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rails (Bitnami): affected from 3.0.0; fixed in 6.1.8, 7.0.9, 7.1.4, 7.2.2\n- actionmailer (RubyGems): affected from 3.0.0; fixed in 6.1.7.9\n- actionmailer (RubyGems): affected from 3.0.0; fixed in 6.1.7.9\n- actionmailer (RubyGems): affected from 7.0.0; fixed in 7.0.8.5\n- actionmailer (RubyGems): affected from 7.0.0; fixed in 7.0.8.5\n- actionmailer (RubyGems): affected from 7.1.0; fixed in 7.1.4.1\n- actionmailer (RubyGems): affected from 7.1.0; fixed in 7.1.4.1\n- actionmailer (RubyGems): affected from 7.2.0; fixed in 7.2.1.1\n- actionmailer (RubyGems): affected from 7.2.0; fixed in 7.2.1.1\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-47889/ (Markdown: https://insights.sbomify.com/CVE-2024-47889/index.md)","id":"CVE-2024-47889","markdown":"https://insights.sbomify.com/CVE-2024-47889/index.md","name":"CVE-2024-47889","record":{"aliases":["BIT-rails-2024-47889","DEBIAN-CVE-2024-47889","GHSA-h47h-mwp9-c6q6","OESA-2024-2383","SUSE-SU-2024:3878-1","UBUNTU-CVE-2024-47889","openSUSE-SU-2024:14471-1","openSUSE-SU-2025:15109-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby on Rails","requires_auth":"none","summary":"Attackers can cause denial of service in Rails applications by sending crafted text to the Action Mailer block_format helper.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.6,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U","version":"4.0"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"Action Mailer is a framework for designing email service layers. Starting in version 3.0.0 and prior to versions 6.1.7.9, 7.0.8.5, 7.1.4.1, and 7.2.1.1, there is a possible ReDoS vulnerability in the block_format helper in Action Mailer. Carefully crafted text can cause the block_format helper to take an unexpected amount of time, possibly resulting in a DoS vulnerability. All users running an affected release should either upgrade to versions 6.1.7.9, 7.0.8.5, 7.1.4.1, or 7.2.1.1 or apply the relevant patch immediately. As a workaround, users can avoid calling the `block_format` helper or upgrade to Ruby 3.2. Ruby 3.2 has mitigations for this problem, so Rails applications using Ruby 3.2 or newer are unaffected. Rails 8.0.0.beta1 requires Ruby 3.2 or greater so is unaffected.","ecosystems":["Bitnami","RubyGems","SUSE:Linux Enterprise High Availability Extension 15 SP2","SUSE:Linux Enterprise High Availability Extension 15 SP3","SUSE:Linux Enterprise High Availability Extension 15 SP4","SUSE:Linux Enterprise High Availability Extension 15 SP5","openSUSE:Tumbleweed"],"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":"Action Mailer has possible ReDoS vulnerability in block_format","id":"CVE-2024-47889","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":15,"n_references":5,"next":{"headline":"Use after free in Graphics DDK","id":"CVE-2024-47891"},"packages":[{"ecosystem":"Bitnami","fixed":["6.1.8","7.0.9","7.1.4","7.2.2"],"introduced":["3.0.0","7.0.0","7.1.0","7.2.0"],"last_affected":[],"package":"rails","purl":"pkg:bitnami/rails","source":"BIT-rails-2024-47889"},{"ecosystem":"RubyGems","fixed":["6.1.7.9"],"introduced":["3.0.0"],"last_affected":[],"package":"actionmailer","purl":null,"source":"GHSA-h47h-mwp9-c6q6"},{"ecosystem":"RubyGems","fixed":["6.1.7.9"],"introduced":["3.0.0"],"last_affected":[],"package":"actionmailer","purl":"pkg:gem/actionmailer","source":"GHSA-h47h-mwp9-c6q6"},{"ecosystem":"RubyGems","fixed":["7.0.8.5"],"introduced":["7.0.0"],"last_affected":[],"package":"actionmailer","purl":null,"source":"GHSA-h47h-mwp9-c6q6"},{"ecosystem":"RubyGems","fixed":["7.0.8.5"],"introduced":["7.0.0"],"last_affected":[],"package":"actionmailer","purl":"pkg:gem/actionmailer","source":"GHSA-h47h-mwp9-c6q6"},{"ecosystem":"RubyGems","fixed":["7.1.4.1"],"introduced":["7.1.0"],"last_affected":[],"package":"actionmailer","purl":null,"source":"GHSA-h47h-mwp9-c6q6"},{"ecosystem":"RubyGems","fixed":["7.1.4.1"],"introduced":["7.1.0"],"last_affected":[],"package":"actionmailer","purl":"pkg:gem/actionmailer","source":"GHSA-h47h-mwp9-c6q6"},{"ecosystem":"RubyGems","fixed":["7.2.1.1"],"introduced":["7.2.0"],"last_affected":[],"package":"actionmailer","purl":null,"source":"GHSA-h47h-mwp9-c6q6"},{"ecosystem":"RubyGems","fixed":["7.2.1.1"],"introduced":["7.2.0"],"last_affected":[],"package":"actionmailer","purl":"pkg:gem/actionmailer","source":"GHSA-h47h-mwp9-c6q6"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP2","fixed":["5.1.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionmailer-5_1","purl":"pkg:rpm/suse/rubygem-actionmailer-5_1\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP2","source":"SUSE-SU-2024:3878-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP3","fixed":["5.1.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionmailer-5_1","purl":"pkg:rpm/suse/rubygem-actionmailer-5_1\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP3","source":"SUSE-SU-2024:3878-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP4","fixed":["5.1.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionmailer-5_1","purl":"pkg:rpm/suse/rubygem-actionmailer-5_1\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP4","source":"SUSE-SU-2024:3878-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP5","fixed":["5.1.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionmailer-5_1","purl":"pkg:rpm/suse/rubygem-actionmailer-5_1\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP5","source":"SUSE-SU-2024:3878-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.0.8.6-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionmailer-7.0","purl":"pkg:rpm/opensuse/rubygem-actionmailer-7.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14471-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.0.8.6-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionmailer-7.0","purl":"pkg:rpm/opensuse/rubygem-actionmailer-7.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15109-1"}],"prev":{"headline":"Action Text has possible ReDoS vulnerability in plain_text_for_blockquote_node","id":"CVE-2024-47888"},"products":["rails"],"published":"2024-10-16","related":[],"sources":[{"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":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-17","vendors":["rails"]},"summary":"Attackers can cause denial of service in Rails applications by sending crafted text to the Action Mailer block_format helper.","url":"https://insights.sbomify.com/CVE-2024-47889/"}