Skip to content
Fencer Vulns
medium 6.6

CVE-2024-47889 json

Action Mailer has possible ReDoS vulnerability in block_format

published 2024-10-15 2 y ago modified 2026-06-17 4 mo ago also BIT-rails-2024-47889 , EUVD-2024-3051 , GHSA-h47h-mwp9-c6q6

cvss
6.6
version 4.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.9%
EPSS 0.9% chance of exploitation in 30 days, percentile 61%
public exploits
0
none known

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.

Patch / fix

  • rubygems actionmailer 6.1.7.9, 7.0.8.5, 7.1.4.1, 7.2.1.1
  • bitnami rails 6.1.8, 7.0.9, 7.1.4, 7.2.2
  • rubyonrails rails 6.1.7.9, 7.0.8.5, 7.1.4.1, 7.2.1.1
  • rails Debian 12 2:6.1.7.10+dfsg-1~deb12u1
  • rails Debian 14, Debian 13 2:7.2.2.1+dfsg-1

debian advisories DEBIAN-CVE-2024-47889

  • rails Ubuntu Pro 16.04 LTS 2:4.2.6-1ubuntu0.1~esm1
  • rails Ubuntu Pro 18.04 LTS 2:4.2.10-0ubuntu4+esm1
  • rails Ubuntu Pro 20.04 LTS 2:5.2.3+dfsg-3ubuntu0.1~esm1
  • rails Ubuntu Pro 22.04 LTS 2:6.1.4.1+dfsg-8ubuntu2+esm1

ubuntu advisories UBUNTU-CVE-2024-47889

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • rubygem-actionmailer-5_1 SLE High Availability Extension 15 SP5, SLE High Availability Extension 15 SP4, SLE High Availability Extension 15 SP3 +1 more 5.1.4-150000.3.3.1

suse advisories SUSE-SU-2024:3878-1

  • rubygem-actionmailer-7.0 openSUSE Tumbleweed 7.0.8.6-1.3
  • rubygem-rails-7.0 openSUSE Tumbleweed 7.0.8.6-1.3
  • rubygem-rails-7.0 openSUSE Tumbleweed 7.0.8.6-1.1
  • rubygem-actionmailer-7.0 openSUSE Tumbleweed 7.0.8.6-1.1

opensuse advisories openSUSE-SU-2025:15109-1openSUSE-SU-2025:15124-1openSUSE-SU-2024:14479-1openSUSE-SU-2024:14471-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-47889 updated cvss 3.7

rubygem-actionmailer: Possible ReDoS vulnerability in block_format in Action Mailer

  • Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7 Red Hat Satellite 6 rubygem-actionmailer
    affected: workaround, no fix available “Users can avoid calling the block_format helper or upgrade to Ruby 3.2.”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.94% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 6.6 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
CNA 4.0 6.6 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected packages

ecosystem package affected fixed in
rubygems actionmailer
>=3.0.0, <6.1.7.9
>=7.0.0, <7.0.8.5
>=7.1.0, <7.1.4.1
>=7.2.0, <7.2.1.1
6.1.7.9
7.0.8.5
7.1.4.1
7.2.1.1
bitnami rails
>=3.0.0, <6.1.8
>=7.0.0, <7.0.9
>=7.1.0, <7.1.4
>=7.2.0, <7.2.2
6.1.8
7.0.9
7.1.4
7.2.2

Affected products

  • rails rails
  • rubyonrails rails

Classification

Weakness
  • CWE-1333 Inefficient Regular Expression Complexity
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

The maintainers of rails/rails published their own advisory on GitHub. Reviewed sources take precedence over it.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.