CVE-2013-0156Rubyonrails Rails
High 7.5 No auth neededHigh EPSS
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 2.0
- 7.5
- EPSS
- 99.0% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- Published
- Jan 13, 2013
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
What happens
active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, and 3.2.x before 3.2.11 does not properly restrict casts of string values, which allows remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) involving nested XML entity references, by leveraging Action Pack support for (1) YAML type conversion or (2) Symbol type conversion.
What to do
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionpack |
< 2.3.15 |
2.3.15 |
gem "actionpack", ">= 2.3.15" |
| RubyGems | actionpack |
≥ 3.0.0 < 3.0.19 |
3.0.19 |
gem "actionpack", ">= 3.0.19" |
| RubyGems | actionpack |
≥ 3.1.0 < 3.1.10 |
3.1.10 |
gem "actionpack", ">= 3.1.10" |
| RubyGems | actionpack |
≥ 3.2.0 < 3.2.11 |
3.2.11 |
gem "actionpack", ">= 3.2.11" |
Per OSV / GitHub Advisories (GHSA-jmgw-6vjg-jjwg). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | ≥ 3.2.0 < 3.2.11 |
| rubyonrails | ruby_on_rails | < 2.3.15 |
| rubyonrails | ruby_on_rails | ≥ 3.0.0 < 3.0.19 |
| rubyonrails | ruby_on_rails | ≥ 3.1.0 < 3.1.10 |
| debian | debian_linux | 6.0 |
| debian | debian_linux | 7.0 |
Official sources
References
Links published by the sources. Open them with care.
- ics-cert.us-cert.gov Third Party Advisory US Government Resource
- lists.apple.com Mailing List Third Party Advisory
- rhn.redhat.com Third Party Advisory
- rhn.redhat.com Third Party Advisory
- rhn.redhat.com Third Party Advisory
- weblog.rubyonrails.org Vendor Advisory
- www.debian.org Third Party Advisory
- www.fujitsu.com Third Party Advisory
- www.insinuator.net Third Party Advisory
- www.kb.cert.org Third Party Advisory US Government Resource
- www.kb.cert.org Third Party Advisory US Government Resource
- community.rapid7.com Third Party Advisory
- groups.google.com Third Party Advisory
- puppet.com Third Party Advisory