cve.bz

CVE-2024-47887 rails rails

6.6 mediumEPSS 1.0%Fix available

Medium (6.6) in rails rails. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in actionpack 6.1.7.9, 7.0.8.5, 7.1.4.1.

On this page
Action Pack is a framework for handling and responding to web requests. Starting in version 4.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 Action Controller's HTTP Token authentication. For applications using HTTP Token authentication via `authenticate_or_request_with_http_token` or similar, a carefully crafted header may cause header parsing 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. One may choose to use Ruby 3.2 as a workaround.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.

Severity

CVSS 4.0

6.6 medium
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
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-10-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-47887 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-47887?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-47887?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-47887 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
rails>= 4.0.0, < 6.1.7.9
rails>= 7.0.0, < 7.0.8.5
rails>= 7.1.0, < 7.1.4.1
rails>= 7.2.0, < 7.2.1.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vfg9-r3fq-jvx4RubyGemsactionpack>=4.0.0 <6.1.7.96.1.7.9
GHSA-vfg9-r3fq-jvx4RubyGemsactionpack>=7.0.0 <7.0.8.57.0.8.5
GHSA-vfg9-r3fq-jvx4RubyGemsactionpack>=7.1.0 <7.1.4.17.1.4.1
GHSA-vfg9-r3fq-jvx4RubyGemsactionpack>=7.2.0 <7.2.1.17.2.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11rails2:6.0.3.7+dfsg-2+deb11u3DLA-4383-1
Debian12rails2:6.1.7.10+dfsg-1~deb12u1DEBIAN-CVE-2024-47887 DSA-5881-1
Debian13, 14rails2:7.2.2.1+dfsg-1DEBIAN-CVE-2024-47887
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morerailsno fix listedUBUNTU-CVE-2024-47887
UbuntuPro:16.04:LTSrails2:4.2.6-1ubuntu0.1~esm1UBUNTU-CVE-2024-47887 USN-7290-1
UbuntuPro:18.04:LTSrails2:4.2.10-0ubuntu4+esm1UBUNTU-CVE-2024-47887 USN-7290-1
UbuntuPro:20.04:LTSrails2:5.2.3+dfsg-3ubuntu0.1~esm1UBUNTU-CVE-2024-47887 USN-7290-1
UbuntuPro:22.04:LTSrails2:6.1.4.1+dfsg-8ubuntu2+esm1UBUNTU-CVE-2024-47887 USN-7290-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise High Availability Extension 15 SP4, Linux Enterprise High Availability Extension 15 SP5 and 1 morerubygem-actionpack-5_15.1.4-150000.3.32.1SUSE-SU-2024:3877-1
openSUSETumbleweedrubygem-actionpack-7.07.0.8.6-1.1openSUSE-SU-2024:14472-1
openSUSETumbleweedrubygem-actionpack-7.07.0.8.6-1.3openSUSE-SU-2025:15110-1
openSUSETumbleweedrubygem-rails-7.07.0.8.6-1.1openSUSE-SU-2024:14479-1
openSUSETumbleweedrubygem-rails-7.07.0.8.6-1.3openSUSE-SU-2025:15124-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Users on Ruby 3.2 are unaffected by this issue.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Fix deferred
Red Hat Satellite 6rubygem-actionpackFix deferred
Red Hat Satellite 6satellite:el8/rubygem-actionpackFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-47887.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON