CVE-2024-47889: Action Mailer has possible ReDoS vulnerability in block_format
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 blockformat helper in Action Mailer. Carefully crafted text can cause the blockformat 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 blockformat 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.
Other sources
There is a possible ReDoS vulnerability in the blockformat helper in Action Mailer. This vulnerability has been assigned the CVE identifier CVE-2024-47889.
Impact ------
Carefully crafted text can cause the blockformat 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.
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.
Releases -------- The fixed releases are available at the normal locations.
Workarounds ----------- Users can avoid calling the blockformat helper or upgrade to Ruby 3.2
Credits -------
Thanks to yukiosaki for the report!
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rubygems/actionmailerto a version that resolves this vulnerability.Fixed in 7.2.1.1 - Upgrade
Upgrade
rubygems/actionmailerto a version that resolves this vulnerability.Fixed in 7.1.4.1 - Upgrade
Upgrade
rubygems/actionmailerto a version that resolves this vulnerability.Fixed in 7.0.8.5 - Upgrade
Upgrade
rubygems/actionmailerto a version that resolves this vulnerability.Fixed in 6.1.7.9 - Upgrade
Upgrade
debian/railsto a version that resolves this vulnerability.Fixed in 2:6.1.7.10+dfsg-1~deb12u1 - Upgrade
Upgrade
debian/railsto a version that resolves this vulnerability.Fixed in 2:7.2.2.1+dfsg-1 - Upgrade
Upgrade
debian/railsto a version that resolves this vulnerability.Fixed in 2:6.1.7.10+dfsg-1~deb12u2Fixed in 2:6.1.7.10+dfsg-1~deb12u3Fixed in 2:7.2.2.2+dfsg-2~deb13u1Fixed in 2:7.2.2.2+dfsg-2~deb13u2Fixed in 2:7.2.4+dfsg-2 - Upgrade
Upgrade
Action Mailerto a version that resolves this vulnerability.Fixed in 6.1.7.9 - Upgrade
Upgrade
Action Mailerto a version that resolves this vulnerability.Fixed in 7.0.8.5 - Upgrade
Upgrade
Action Mailerto a version that resolves this vulnerability.Fixed in 7.1.4.1 - Upgrade
Upgrade
Action Mailerto a version that resolves this vulnerability.Fixed in 7.2.1.1 - Upgrade
Upgrade
Rubyto a version that resolves this vulnerability.Fixed in 3.2 - Compensating control
Avoid calling the Action Mailer block_format helper.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-47889?
The severity of CVE-2024-47889 is categorized as high due to its potential for resource exhaustion.
How do I fix CVE-2024-47889?
To fix CVE-2024-47889, upgrade the Action Mailer to version 6.1.7.9, 7.0.8.5, 7.1.4.1, or 7.2.1.1.
What versions are affected by CVE-2024-47889?
CVE-2024-47889 affects Action Mailer starting from version 3.0.0 up to but not including the specified remedied versions.
Is there a workaround for CVE-2024-47889?
There is no specific workaround for CVE-2024-47889; the best approach is to update to a fixed version.
What is the nature of the vulnerability in CVE-2024-47889?
CVE-2024-47889 is a Regular Expression Denial of Service (ReDoS) vulnerability in the block_format helper of Action Mailer.