CVE-2024-47887
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.
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 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.</p>
</body>
</description>
<references>
<cvename>CVE-2024-47887</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2024-47887</url>
</references>
<dates>
<discovery>2024-10-16</discovery>
<entry>2026-10-26</entry>
</dates>
</vuln>