CVE-2012-6109: Medium severity Rack Project Rack vulnerability
lib/rack/multipart.rb in Rack before 1.1.4, 1.2.x before 1.2.6, 1.3.x before 1.3.7, and 1.4.x before 1.4.2 uses an incorrect regular expression, which allows remote attackers to cause a denial of service (infinite loop) via a crafted Content-Disposion header.
Other sources
lib/rack/multipart.rb in Rack before 1.1.4, 1.2.x before 1.2.6, 1.3.x before 1.3.7, and 1.4.x before 1.4.2 uses an incorrect regular expression, which allows remote attackers to cause a denial of service (infinite loop) via a crafted Content-Disposion header.
Upstream released [1] Rack 1.4.2, 1.3.7, 1.2.6, and 1.1.4 to fix a denial of service condition when Rack parses content with a certain Content-Disposition header as noted in the original report [2].
This has been fixed in git [3].
Additionally, a second flaw that was fixed in 1.4.4, 1.3.9, 1.2.7, and 1.1.5 was also announced [4] that creates a minor denial of service condition, this time in the Rack::Auth::AbstractRequest, where it symbolized arbitrary strings (apparently this has something to do with authentication, but there is no further information provided other than the fix [5] itself, which is noted as "a breaking API change").
[1] http://rack.github.com/ [2] https://groups.google.com/forum/#!msg/rack-devel/1w4fWEgTdI/XAkSNHjtdTsJ [3] https://github.com/rack/rack/commit/4fc44671b3cad569421f4f8b775c0590b86f575e [4] https://groups.google.com/forum/#!topic/rack-devel/ImYOqcGiksw/discussion [5] https://github.com/rack/rack/commit/0c76175fcccad74ba2f991c487d3669c28a297c8
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rubygems/rackto a version that resolves this vulnerability.Fixed in 1.4.2 - Upgrade
Upgrade
rubygems/rackto a version that resolves this vulnerability.Fixed in 1.3.7 - Upgrade
Upgrade
rubygems/rackto a version that resolves this vulnerability.Fixed in 1.2.6 - Upgrade
Upgrade
rubygems/rackto a version that resolves this vulnerability.Fixed in 1.1.4 - Upgrade
Upgrade
redhat/rubygem-activesupportto a version that resolves this vulnerability.Fixed in 1:3.0.10-10.el6cf - Upgrade
Upgrade
redhat/rubygem-nokogirito a version that resolves this vulnerability.Fixed in 0:1.5.0-0.9.beta4.el6cf - Upgrade
Upgrade
redhat/rubygem-rackto a version that resolves this vulnerability.Fixed in 1:1.3.0-3.el6cf - Upgrade
Upgrade
redhat/rubygem-rdocto a version that resolves this vulnerability.Fixed in 0:3.8-6.el6cf - Upgrade
Upgrade
redhat/rubygem-rspec-railsto a version that resolves this vulnerability.Fixed in 0:2.6.1-7.el6cf - Upgrade
Upgrade
redhat/rubygem-shouldato a version that resolves this vulnerability.Fixed in 0:2.11.3-5.el6cf - Upgrade
Upgrade
redhat/apache-commons-codecto a version that resolves this vulnerability.Fixed in 0:1.7-2.el6_3 - Upgrade
Upgrade
redhat/apache-mime4jto a version that resolves this vulnerability.Fixed in 0:0.6-4_redhat_1.ep6.el6.1 - Upgrade
Upgrade
redhat/candlepinto a version that resolves this vulnerability.Fixed in 0:0.7.23-1.el6_3 - Upgrade
Upgrade
redhat/elasticsearchto a version that resolves this vulnerability.Fixed in 0:0.19.9-5.el6_3 - Upgrade
Upgrade
redhat/katelloto a version that resolves this vulnerability.Fixed in 0:1.2.1-15h.el6_3 - Upgrade
Upgrade
redhat/katello-certs-toolsto a version that resolves this vulnerability.Fixed in 0:1.2.1-1h.el6_3 - Upgrade
Upgrade
redhat/katello-clito a version that resolves this vulnerability.Fixed in 0:1.2.1-12h.el6_3 - Upgrade
Upgrade
redhat/katello-configureto a version that resolves this vulnerability.Fixed in 0:1.2.3-3h.el6_3 - Upgrade
Upgrade
redhat/katello-selinuxto a version that resolves this vulnerability.Fixed in 0:1.2.1-2h.el6_3 - Upgrade
Upgrade
redhat/lucene3to a version that resolves this vulnerability.Fixed in 0:3.6.1-10h.el6_3 - Upgrade
Upgrade
redhat/puppetto a version that resolves this vulnerability.Fixed in 0:2.6.17-2.el6cf - Upgrade
Upgrade
redhat/quartzto a version that resolves this vulnerability.Fixed in 0:2.1.5-4.el6_3 - Upgrade
Upgrade
redhat/rubygem-apipie-railsto a version that resolves this vulnerability.Fixed in 0:0.0.12-2.el6cf - Upgrade
Upgrade
redhat/rubygem-mailto a version that resolves this vulnerability.Fixed in 0:2.3.0-3.el6cf - Upgrade
Upgrade
redhat/sigarto a version that resolves this vulnerability.Fixed in 0:1.6.5-0.12.git58097d9h.el6_3 - Upgrade
Upgrade
redhat/snappy-javato a version that resolves this vulnerability.Fixed in 0:1.0.4-2.el6_3 - Upgrade
Upgrade
redhat/thumbslugto a version that resolves this vulnerability.Fixed in 0:0.0.28-1.el6_3 - Upgrade
Upgrade
debian/ruby-rackto a version that resolves this vulnerability.Fixed in 1.4.1-2.1 - Upgrade
Upgrade
debian/ruby-rackto a version that resolves this vulnerability.Fixed in 2.2.22-0+deb12u1Fixed in 2.2.22-0+deb12u2Fixed in 3.1.20-0+deb13u1Fixed in 3.1.20-0+deb13u2Fixed in 3.2.8-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.4.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.3.9 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.2.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.1.5
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2012-6109?
CVE-2012-6109 has a severity rating that indicates a denial of service vulnerability that can lead to an infinite loop.
How do I fix CVE-2012-6109?
To fix CVE-2012-6109, upgrade Rack to version 1.1.4 or later, or to the appropriate patched version for your installation.
What versions of Rack are affected by CVE-2012-6109?
CVE-2012-6109 affects Rack versions before 1.1.4, 1.2.x before 1.2.6, 1.3.x before 1.3.7, and 1.4.x before 1.4.2.
Can CVE-2012-6109 cause a website to crash?
Yes, CVE-2012-6109 can allow remote attackers to cause a denial of service, potentially crashing the affected application.
Is CVE-2012-6109 exploitable without authentication?
CVE-2012-6109 can be exploited without authentication, making it a significant risk for publicly accessible servers.