CVE-2024-47889
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.
- Score
- 6.6 medium
- Published
- 2024-10-16
- Links
- NVD · cve.org · Report wrong data
Matched ports (5)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| www/rubygem-rails4 | rubygem-rails4 | 4.2.11.3 | unaddressed | sunpoet@FreeBSD.org |
| www/rubygem-rails5 | rubygem-rails5 | 5.1.7_2 | unaddressed | ruby@FreeBSD.org |
| www/rubygem-rails50 | rubygem-rails50 | 5.0.7.2_2 | unaddressed | ruby@FreeBSD.org |
| www/rubygem-rails52 | rubygem-rails52 | 5.2.8.1 | unaddressed | sunpoet@FreeBSD.org |
| www/rubygem-rails60 | rubygem-rails60 | 6.0.6.1_2 | unaddressed | sunpoet@FreeBSD.org |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>rubygem-rails4</name>
<range><lt>6.1.7.9</lt></range>
</package>
<package>
<name>rubygem-rails5</name>
<range><lt>6.1.7.9</lt></range>
</package>
<package>
<name>rubygem-rails50</name>
<range><lt>6.1.7.9</lt></range>
</package>
<package>
<name>rubygem-rails52</name>
<range><lt>6.1.7.9</lt></range>
</package>
<package>
<name>rubygem-rails60</name>
<range><lt>6.1.7.9</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>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.</p>
</body>
</description>
<references>
<cvename>CVE-2024-47889</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2024-47889</url>
</references>
<dates>
<discovery>2024-10-16</discovery>
<entry>2026-10-26</entry>
</dates>
</vuln>