CVE-2024-47888 json
Action Text has possible ReDoS vulnerability in plain_text_for_blockquote_node
published 2024-10-15 2 y ago modified 2026-06-17 4 mo ago also BIT-rails-2024-47888 , EUVD-2024-3158 , GHSA-wwhv-wxv9-rpgw
- cvss
- 6.6
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 62%
- public exploits
- 0
- none known
Summary
Action Text brings rich text content and editing to Rails. Starting in version 6.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 `plain_text_for_blockquote_node helper` in Action Text. Carefully crafted text can cause the `plain_text_for_blockquote_node` 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 `plain_text_for_blockquote_node` 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 depends on Ruby 3.2 or greater so is unaffected.
Patch / fix
- rubygems actiontext 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
- rails 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-47888
- 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-47888
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-actiontext-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-actiontext-7.0 openSUSE Tumbleweed 7.0.8.6-1.1
opensuse advisories openSUSE-SU-2025:15111-1openSUSE-SU-2025:15124-1openSUSE-SU-2024:14479-1openSUSE-SU-2024:14473-1
- github.com/rails/rails@4f4312b commit
- github.com/rails/rails@727b094 commit
- github.com/rails/rails@ba286c0 commit
- github.com/rails/rails@de0df7c commit
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-47888 updated cvss 3.7
rubygem-actiontext: Possible ReDoS vulnerability in plain_text_for_blockquote_node in Action Text
-
Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7 Red Hat Satellite 6 rubygem-actiontextaffected: workaround, no fix available “Users can avoid calling `plain_text_for_blockquote_node` 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.98% chance of exploitation in the next 30 days, higher than 62% 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 | actiontext | >=6.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 | >=6.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
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
- Technology feeds
References
-
github.com
/rails/rails/commit/4f4312b21a6448336de7c7ab0c4d94b378def468
web
-
github.com
/rails/rails/commit/727b0946c3cab04b825c039435eac963d4e91822
web
-
github.com
/rails/rails/commit/ba286c0a310b7f19cf5cac2a7a4c9def5cf9882e
web
-
github.com
/rails/rails/commit/de0df7caebd9cb238a6f10dca462dc5f8d5e98b5
web
-
github.com
/rails/rails/security/advisories/GHSA-wwhv-wxv9-rpgw
web, advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/actiontext/CVE-2024-47888.yml
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-47888
web
Sources
- CVE List CVE-2024-47888
- GitHub Advisory GHSA-wwhv-wxv9-rpgw
- NVD CVE-2024-47888
- OSV BIT-rails-2024-47888
- Maintainer advisory GHSA-wwhv-wxv9-rpgw
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.