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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- RHSA-2014:0306 Red Hat Security Advisory: ruby193-rubygem-actionpack security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:0215 Red Hat Security Advisory: cfme security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DSA-2929-1 ruby-actionpack-3.2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- RHSA-2014:0215 vendor-advisory
- RHSA-2014:0306 vendor-advisory
- 65647 vdb-entry
- 1029782 vdb-entry
- [oss-security] 20140218 XSS Vulnerability in number_to_currency, number_to_percentage and number_to_human (CVE-2014-0081) mailing-list
- openSUSE-SU-2014:0295 vendor-advisory
- 57376 third-party-advisory
- [rubyonrails-security] 20140218 XSS Vulnerability in number_to_currency, number_to_percentage and number_to_human (CVE-2014-0081) mailing-list