CVE-2012-6109: Medium severity Rack Project Rack vulnerability

Published May 4, 2012
·
Updated

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

56 affected componentsFixes available
rubygems/rack>=1.4.0<1.4.2
1.4.2
rubygems/rack>=1.3.0<1.3.7
1.3.7
rubygems/rack>=1.2.0<1.2.6
1.2.6
rubygems/rack<1.1.4
1.1.4
redhat/rubygem-activesupport<1:3.0.10-10.el6cf
1:3.0.10-10.el6cf
redhat/rubygem-nokogiri<0:1.5.0-0.9.beta4.el6cf
0:1.5.0-0.9.beta4.el6cf
redhat/rubygem-rack<1:1.3.0-3.el6cf
1:1.3.0-3.el6cf
redhat/rubygem-rdoc<0:3.8-6.el6cf
0:3.8-6.el6cf
redhat/rubygem-rspec-rails<0:2.6.1-7.el6cf
0:2.6.1-7.el6cf
redhat/rubygem-shoulda<0:2.11.3-5.el6cf
0:2.11.3-5.el6cf
redhat/apache-commons-codec<0:1.7-2.el6_3
0:1.7-2.el6_3
redhat/apache-mime4j<0:0.6-4_redhat_1.ep6.el6.1
0:0.6-4_redhat_1.ep6.el6.1
redhat/candlepin<0:0.7.23-1.el6_3
0:0.7.23-1.el6_3
redhat/elasticsearch<0:0.19.9-5.el6_3
0:0.19.9-5.el6_3
redhat/katello<0:1.2.1-15h.el6_3
0:1.2.1-15h.el6_3
redhat/katello-certs-tools<0:1.2.1-1h.el6_3
0:1.2.1-1h.el6_3
redhat/katello-cli<0:1.2.1-12h.el6_3
0:1.2.1-12h.el6_3
redhat/katello-configure<0:1.2.3-3h.el6_3
0:1.2.3-3h.el6_3
redhat/katello-selinux<0:1.2.1-2h.el6_3
0:1.2.1-2h.el6_3
redhat/lucene3<0:3.6.1-10h.el6_3
0:3.6.1-10h.el6_3
redhat/puppet<0:2.6.17-2.el6cf
0:2.6.17-2.el6cf
redhat/quartz<0:2.1.5-4.el6_3
0:2.1.5-4.el6_3
redhat/rubygem-apipie-rails<0:0.0.12-2.el6cf
0:0.0.12-2.el6cf
redhat/rubygem-mail<0:2.3.0-3.el6cf
0:2.3.0-3.el6cf
redhat/sigar<0:1.6.5-0.12.git58097d9h.el6_3
0:1.6.5-0.12.git58097d9h.el6_3
redhat/snappy-java<0:1.0.4-2.el6_3
0:1.0.4-2.el6_3
redhat/thumbslug<0:0.0.28-1.el6_3
0:0.0.28-1.el6_3
Rack Project Rack<=1.1.3
Rack Project Rack=0.1
Rack Project Rack=0.2
Rack Project Rack=0.3
Rack Project Rack=0.4
Rack Project Rack=0.9
Rack Project Rack=0.9.1
Rack Project Rack=1.0.0
Rack Project Rack=1.0.1
Rack Project Rack=1.1.0
Rack Project Rack=1.1.2
Rack Project Rack=1.2.0
Rack Project Rack=1.2.1
Rack Project Rack=1.2.2
Rack Project Rack=1.2.3
Rack Project Rack=1.2.4
Rack Project Rack=1.3.0
Rack Project Rack=1.3.1
Rack Project Rack=1.3.2
Rack Project Rack=1.3.3
Rack Project Rack=1.3.4
Rack Project Rack=1.3.5
Rack Project Rack=1.3.6
Rack Project Rack=1.4.0
Rack Project Rack=1.4.1
debian/ruby-rack<1.4.1-2.1
1.4.1-2.1
debian/ruby-rack<1.4.1-2.1
1.4.1-2.1
debian/ruby-rack<1.4.1-2.1
1.4.1-2.1
debian/ruby-rack
2.2.22-0+deb12u12.2.22-0+deb12u23.1.20-0+deb13u13.1.20-0+deb13u23.2.8-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1.4.2
  2. Upgrade

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

    Fixed in 1.3.7
  3. Upgrade

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

    Fixed in 1.2.6
  4. Upgrade

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

    Fixed in 1.1.4
  5. Upgrade

    Upgrade redhat/rubygem-activesupport to a version that resolves this vulnerability.

    Fixed in 1:3.0.10-10.el6cf
  6. Upgrade

    Upgrade redhat/rubygem-nokogiri to a version that resolves this vulnerability.

    Fixed in 0:1.5.0-0.9.beta4.el6cf
  7. Upgrade

    Upgrade redhat/rubygem-rack to a version that resolves this vulnerability.

    Fixed in 1:1.3.0-3.el6cf
  8. Upgrade

    Upgrade redhat/rubygem-rdoc to a version that resolves this vulnerability.

    Fixed in 0:3.8-6.el6cf
  9. Upgrade

    Upgrade redhat/rubygem-rspec-rails to a version that resolves this vulnerability.

    Fixed in 0:2.6.1-7.el6cf
  10. Upgrade

    Upgrade redhat/rubygem-shoulda to a version that resolves this vulnerability.

    Fixed in 0:2.11.3-5.el6cf
  11. Upgrade

    Upgrade redhat/apache-commons-codec to a version that resolves this vulnerability.

    Fixed in 0:1.7-2.el6_3
  12. Upgrade

    Upgrade redhat/apache-mime4j to a version that resolves this vulnerability.

    Fixed in 0:0.6-4_redhat_1.ep6.el6.1
  13. Upgrade

    Upgrade redhat/candlepin to a version that resolves this vulnerability.

    Fixed in 0:0.7.23-1.el6_3
  14. Upgrade

    Upgrade redhat/elasticsearch to a version that resolves this vulnerability.

    Fixed in 0:0.19.9-5.el6_3
  15. Upgrade

    Upgrade redhat/katello to a version that resolves this vulnerability.

    Fixed in 0:1.2.1-15h.el6_3
  16. Upgrade

    Upgrade redhat/katello-certs-tools to a version that resolves this vulnerability.

    Fixed in 0:1.2.1-1h.el6_3
  17. Upgrade

    Upgrade redhat/katello-cli to a version that resolves this vulnerability.

    Fixed in 0:1.2.1-12h.el6_3
  18. Upgrade

    Upgrade redhat/katello-configure to a version that resolves this vulnerability.

    Fixed in 0:1.2.3-3h.el6_3
  19. Upgrade

    Upgrade redhat/katello-selinux to a version that resolves this vulnerability.

    Fixed in 0:1.2.1-2h.el6_3
  20. Upgrade

    Upgrade redhat/lucene3 to a version that resolves this vulnerability.

    Fixed in 0:3.6.1-10h.el6_3
  21. Upgrade

    Upgrade redhat/puppet to a version that resolves this vulnerability.

    Fixed in 0:2.6.17-2.el6cf
  22. Upgrade

    Upgrade redhat/quartz to a version that resolves this vulnerability.

    Fixed in 0:2.1.5-4.el6_3
  23. Upgrade

    Upgrade redhat/rubygem-apipie-rails to a version that resolves this vulnerability.

    Fixed in 0:0.0.12-2.el6cf
  24. Upgrade

    Upgrade redhat/rubygem-mail to a version that resolves this vulnerability.

    Fixed in 0:2.3.0-3.el6cf
  25. Upgrade

    Upgrade redhat/sigar to a version that resolves this vulnerability.

    Fixed in 0:1.6.5-0.12.git58097d9h.el6_3
  26. Upgrade

    Upgrade redhat/snappy-java to a version that resolves this vulnerability.

    Fixed in 0:1.0.4-2.el6_3
  27. Upgrade

    Upgrade redhat/thumbslug to a version that resolves this vulnerability.

    Fixed in 0:0.0.28-1.el6_3
  28. Upgrade

    Upgrade debian/ruby-rack to a version that resolves this vulnerability.

    Fixed in 1.4.1-2.1
  29. Upgrade

    Upgrade debian/ruby-rack to 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
  30. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.4.4
  31. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.3.9
  32. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.2.7
  33. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.1.5

Event History

May 4, 2012
CVE Published
12:00 AM
Jan 14, 2013
Data Sourced
via Red Hat·11:48 PM
DescriptionSeverityAffected Software
Mar 1, 2013
CVE Published
via MITRE·02:00 AM
Data Sourced
via MITRE·02:00 AM
Description
Data Sourced
via OSV·05:40 AM
DescriptionAffected Software
Oct 24, 2017
Advisory Published
06:33 PM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

Is CVE-2012-6109 exploitable without authentication?

CVE-2012-6109 can be exploited without authentication, making it a significant risk for publicly accessible servers.

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