Skip to content
OpenAdvisories
Medium CVE-2014-0081 EUVD-2017-0269GHSA-m46p-ggm5-5j83

Rails vulnerable to Cross-site Scripting

Published Feb 20, 2014 · Updated Aug 6, 2024 · Assigned by redhat

Description

Multiple cross-site scripting (XSS) vulnerabilities in actionview/lib/action_view/helpers/number_helper.rb in Ruby on Rails before 3.2.17, 4.0.x before 4.0.3, and 4.1.x before 4.1.0.beta2 allow remote attackers to inject arbitrary web script or HTML via the (1) format, (2) negative_format, or (3) units parameter to the (a) number_to_currency, (b) number_to_percentage, or (c) number_to_human helper.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2.3.14.1 —
Debian 13 rails 2.3.14.1 —
Debian 12 rails 2.3.14.1 —
Debian 7 ruby-actionpack-3.2 3.2.6-6+deb7u2 DSA-2929-1
ReleasePackageFixed inAdvisory
RHEL 1 ruby193-rubygem-actionpack +1 1:3.2.8-5.3.el6 RHSA-2014:0306
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat CloudForms 5 cfme +3 5.2.2.3-1.el6cf RHSA-2014:0215
Red Hat CloudForms 5 ruby193-ruby +4 1.9.3.448-40.1.el6 RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygem-actionpack 1:3.2.13-5.el6cf RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygem-amq-protocol +1 1.9.2-3.el6cf RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygem-bigdecimal 1.1.0-40.1.el6 RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygem-bunny +1 1.0.7-1.el6cf RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygem-excon 0.31.0-1.el6cf RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygem-fog 1.19.0-1.el6cf RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygem-io-console 0.3-40.1.el6 RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygem-linux_admin 0.7.0-1.el6cf RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygem-more_core_extensions 1.1.2-1.el6cf RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygem-nokogiri 1.5.6-3.el6cf RHSA-2014:0215
Red Hat CloudForms 5 ruby193-rubygems +1 1.8.23-40.1.el6 RHSA-2014:0215

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems actionpack >= 3.0.0, < 3.2.17 3.2.17 GHSA-m46p-ggm5-5j83
RubyGems actionpack >= 4.0.0, < 4.0.3 4.0.3 GHSA-m46p-ggm5-5j83
RubyGems rails >= 3.0.0, < 3.2.17 3.2.17 GHSA-m46p-ggm5-5j83
RubyGems rails >= 4.0.0, < 4.0.3 4.0.3 GHSA-m46p-ggm5-5j83

Advisories 3

References