{"id":"CVE-2024-47889","aliases":["CVE-2024-47889","GHSA-h47h-mwp9-c6q6","BIT-RAILS-2024-47889"],"related":[],"kind":"vulnerability","state":"published","title":"Action Mailer has possible ReDoS vulnerability in block_format","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"There is a possible ReDoS vulnerability in the block_format helper in Action Mailer. This vulnerability has been assigned the CVE identifier CVE-2024-47889.\n\nImpact\n------\n\nCarefully 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 or apply the relevant patch immediately.\n\nRuby 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.\n\n\nReleases\n--------\nThe fixed releases are available at the normal locations.\n\nWorkarounds\n-----------\nUsers can avoid calling the `block_format` helper or upgrade to Ruby 3.2\n\nCredits\n-------\n\nThanks to yuki_osaki for the report!","format":"markdown","source":"ghsa"},{"lang":"es","text":"Action Mailer es un framework para diseñar capas de servicio de correo electrónico. A partir de la versión 3.0.0 y anteriores a las versiones 6.1.7.9, 7.0.8.5, 7.1.4.1 y 7.2.1.1, existe una posible vulnerabilidad de ReDoS en el asistente block_format de Action Mailer. Un texto cuidadosamente elaborado puede hacer que el asistente block_format tarde una cantidad inesperada de tiempo, lo que puede dar como resultado una vulnerabilidad de DoS. Todos los usuarios que ejecuten una versión afectada deben actualizar a las versiones 6.1.7.9, 7.0.8.5, 7.1.4.1 o 7.2.1.1 o aplicar el parche correspondiente de inmediato. Como workaround, los usuarios pueden evitar llamar al asistente `block_format` o actualizar a Ruby 3.2. Ruby 3.2 tiene mitigaciones para este problema, por lo que las aplicaciones Rails que usan Ruby 3.2 o versiones más nuevas no se ven afectadas. Rails 8.0.0.beta1 requiere Ruby 3.2 o superior, por lo que no se ve afectado.","source":"nvd"}],"published":"2024-10-15T23:35:38.000Z","modified":"2026-06-17T07:57:55.660Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":">= 3.0.0, < 6.1.7.9","status":"affected"},{"version":">= 7.0.0, < 7.0.8.5","status":"affected"},{"version":">= 7.1.0, < 7.1.4.1","status":"affected"},{"version":">= 7.2.0, < 7.2.1.1","status":"affected"}],"vendor":"rails","product":"rails","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"3.0.0","fixed":"6.1.7.9","status":"affected"},{"type":"custom","introduced":"7.0.0","fixed":"7.0.8.5","status":"affected"},{"type":"custom","introduced":"7.1.0","fixed":"7.1.4.1","status":"affected"},{"type":"custom","introduced":"7.2.0","fixed":"7.2.1.1","status":"affected"}],"vendor":"rubyonrails","product":"rails","cpe":"cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"6.1.7.9"}],"ecosystem":"RubyGems","package":"actionmailer","purl":"pkg:gem/actionmailer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.8.5"}],"ecosystem":"RubyGems","package":"actionmailer","purl":"pkg:gem/actionmailer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.1.0","status":"affected","fixed":"7.1.4.1"}],"ecosystem":"RubyGems","package":"actionmailer","purl":"pkg:gem/actionmailer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.2.0","status":"affected","fixed":"7.2.1.1"}],"ecosystem":"RubyGems","package":"actionmailer","purl":"pkg:gem/actionmailer","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"6.1.8"},{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.0.9"},{"type":"semver","introduced":"7.1.0","status":"affected","fixed":"7.1.4"},{"type":"semver","introduced":"7.2.0","status":"affected","fixed":"7.2.2"}],"ecosystem":"Bitnami","package":"rails","purl":"pkg:bitnami/rails","source":"bitnami"}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-h47h-mwp9-c6q6","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/rails/rails/commit/0e5694f4d32544532d2301a9b4084eacb6986e94","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/rails/rails/commit/3612e3eb3fbafed4f85e1c6ea4c7b6addbb0fdd3","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/rails/rails/commit/985f1923fa62806ff676e41de67c3b4552131ab9","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/rails/rails/commit/be898cc996986decfe238341d96b2a6573b8fd2e","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/rails/rails","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionmailer/CVE-2024-47889.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47889","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-10-17T16:27:30.699Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-47889","url":"https://www.cve.org/CVERecord?id=CVE-2024-47889","licence":"CVE Terms of Use","modified":"2024-10-17T16:31:00.794Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h47h-mwp9-c6q6","url":"https://github.com/advisories/GHSA-h47h-mwp9-c6q6","licence":"CC-BY-4.0","modified":"2025-01-07T21:52:28.561Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-47889","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47889","licence":"Public domain","modified":"2026-06-17T07:57:55.660Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RAILS-2024-47889","url":"https://osv.dev/vulnerability/BIT-RAILS-2024-47889","licence":"Apache-2.0","modified":"2025-05-20T10:02:07.006Z"}],"updatedAt":"2026-11-25T22:58:46.853Z","epss":{"score":0.00937,"percentile":0.6188,"date":"2026-12-01T12:00:22.000Z"}}