CVE-2024-47887: Action Controller has possible ReDoS vulnerability in HTTP Token authentication

Published Oct 15, 2024
·
Updated

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 authenticateorrequestwithhttptoken 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.

Other sources

There is a possible ReDoS vulnerability in Action Controller's HTTP Token authentication. This vulnerability has been assigned the CVE identifier CVE-2024-47887.

Impact ------

For applications using HTTP Token authentication via authenticateorrequestwithhttptoken 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 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 depends on Ruby 3.2 or greater so is unaffected.

Releases -------- The fixed releases are available at the normal locations.

Workarounds ----------- Users on Ruby 3.2 are unaffected by this issue.

Credits ------- Thanks to scyoon for reporting

— GitHub

Affected Software

8 affected componentsFixes available
rubygems/actionpack>=7.2.0<7.2.1.1
7.2.1.1
rubygems/actionpack>=7.1.0<7.1.4.1
7.1.4.1
rubygems/actionpack>=7.0.0<7.0.8.5
7.0.8.5
rubygems/actionpack>=4.0.0<6.1.7.9
6.1.7.9
debian/rails<2:6.1.7.10+dfsg-1~deb12u1
2:6.1.7.10+dfsg-1~deb12u1
debian/rails<2:7.2.2.1+dfsg-1
2:7.2.2.1+dfsg-1
debian/rails<2:7.2.2.1+dfsg-1
2:7.2.2.1+dfsg-1
debian/rails
2:6.1.7.10+dfsg-1~deb12u22:6.1.7.10+dfsg-1~deb12u32:7.2.2.2+dfsg-2~deb13u12:7.2.2.2+dfsg-2~deb13u22:7.2.4+dfsg-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/actionpack to a version that resolves this vulnerability.

    Fixed in 7.2.1.1
  2. Upgrade

    Upgrade rubygems/actionpack to a version that resolves this vulnerability.

    Fixed in 7.1.4.1
  3. Upgrade

    Upgrade rubygems/actionpack to a version that resolves this vulnerability.

    Fixed in 7.0.8.5
  4. Upgrade

    Upgrade rubygems/actionpack to a version that resolves this vulnerability.

    Fixed in 6.1.7.9
  5. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.1.7.10+dfsg-1~deb12u1
  6. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:7.2.2.1+dfsg-1
  7. Upgrade

    Upgrade debian/rails to 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
  8. Upgrade

    Upgrade Action Pack to a version that resolves this vulnerability.

    Fixed in 6.1.7.9
  9. Upgrade

    Upgrade Action Pack to a version that resolves this vulnerability.

    Fixed in 7.0.8.5
  10. Upgrade

    Upgrade Action Pack to a version that resolves this vulnerability.

    Fixed in 7.1.4.1
  11. Upgrade

    Upgrade Action Pack to a version that resolves this vulnerability.

    Fixed in 7.2.1.1
  12. Upgrade

    Upgrade Ruby to a version that resolves this vulnerability.

    Fixed in 3.2

Event History

Oct 15, 2024
Advisory Published
via GitHub·11:35 PM
Oct 16, 2024
CVE Published
via MITRE·08:02 PM
Data Sourced
via MITRE·08:02 PM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-47887?

CVE-2024-47887 is categorized as a moderate severity vulnerability due to the potential for ReDoS attacks in HTTP Token authentication.

2

How do I fix CVE-2024-47887?

To fix CVE-2024-47887, upgrade Action Pack to version 6.1.7.9, 7.0.8.5, 7.1.4.1, or 7.2.1.1.

3

Which versions of Action Pack are vulnerable to CVE-2024-47887?

Versions of Action Pack starting from 4.0.0 and prior to 6.1.7.9, 7.0.8.5, 7.1.4.1, and 7.2.1.1 are vulnerable to CVE-2024-47887.

4

What type of attack is associated with CVE-2024-47887?

CVE-2024-47887 is associated with a ReDoS (Regular Expression Denial of Service) attack, which can lead to denial of service for web applications.

5

Is there a patch available for CVE-2024-47887?

Yes, there are patches available in the form of updated Action Pack versions that address CVE-2024-47887.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203