CVE-2013-0156: 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…
Noroxi assessment
Priority: This week (action score 60/100)
- A ready-made attack module is public (Metasploit, Nuclei); exploiting it takes no special expertise.
- Public proof-of-concept code exists (Exploit-DB, GitHub); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 98.9% (FIRST EPSS); higher than 99.9% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: rails (Debian:12) 2.3.14.1; rails (Debian:6.0) 2.3.5-1.2+squeeze4.1; rubygem-extlib (openSUSE:Tumbleweed) 0.9.16-7.4.
Don’t wait for the next maintenance window. Upgrade to rails (Debian:12) 2.3.14.1; rails (Debian:6.0) 2.3.5-1.2+squeeze4.1; rubygem-extlib (openSUSE:Tumbleweed) 0.9.16-7.4 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jan 13, 2013
- Updated
- Jun 16, 2026
- EPSS
- 98.9% · 99th percentile
- CWE
- CWE-20
Report tools
Action score
60
Don’t wait for the next maintenance window.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 30 / 30 · 98.9%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Weaponized exploit exists
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| rubyonrails | rails | cpe:2.3:a:rubyonrails:rails |
| rubyonrails | ruby on rails | cpe:2.3:a:rubyonrails:ruby_on_rails |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux6.0
- debian debian linux7.0
- rubyonrails rails3.2.0 and later · before 3.2.11
- rubyonrails ruby on railsbefore 2.3.15
- rubyonrails ruby on rails3.0.0 and later · before 3.0.19
- rubyonrails ruby on rails3.1.0 and later · before 3.1.10
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | rails | before 2.3.14.1 | 2.3.14.1 |
| Debian:6.0 | rails | before 2.3.5-1.2+squeeze4.1 | 2.3.5-1.2+squeeze4.1 |
| openSUSE:Tumbleweed | rubygem-extlib | before 0.9.16-7.4 | 0.9.16-7.4 |
| Red Hat:openshift:1::el6 | ruby193-rubygem-actionpack | before 1:3.2.8-2.el6 | 1:3.2.8-2.el6 |
| Red Hat:openshift:1::el6 | ruby193-rubygem-actionpack-doc | before 1:3.2.8-2.el6 | 1:3.2.8-2.el6 |
| Red Hat:openshift:1::el6 | ruby193-rubygem-activesupport | before 1:3.2.8-3.el6 | 1:3.2.8-3.el6 |
| Red Hat:openshift:1::el6 | rubygem-actionpack | before 1:3.0.13-2.1.el6op | 1:3.0.13-2.1.el6op |
| Red Hat:openshift:1::el6 | rubygem-activesupport | before 1:3.0.13-2.el6op | 1:3.0.13-2.el6op |
| RubyGems | actionpack | from 3.0.0 · before 3.0.19 | 3.0.19 |
| RubyGems | actionpack | from 3.1.0 · before 3.1.10 | 3.1.10 |
| RubyGems | actionpack | from 3.2.0 · before 3.2.11 | 3.2.11 |
| RubyGems | actionpack | before 2.3.15 | 2.3.15 |
Same product
rubyonrails: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-5418There is a File Content Disclosure vulnerability in Action View <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 where specially crafted…KEV90Now
- CVE-2016-0752Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1…KEV89Now
- CVE-2019-5420A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess the automatically…66This week
Published before and after this one in the same product
- ← EarlierCVE-2012-6497Jan 4, 2013 · The Authlogic gem for Ruby on Rails, when used with certain versions before 3.2.10, makes potentially unsafe find_by_id method calls, which…21Monitor
- ← EarlierCVE-2013-0155Jan 13, 2013 · Ruby on Rails 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 consider differences in parameter…27Monitor
- Later →CVE-2013-0333Jan 30, 2013 · lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly convert JSON data…59Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:rails | 2.3.14.1 · Debian:12 | Package registry (OSV) |
| opensuse:rubygem-extlib | 0.9.16-7.4 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:ruby193-rubygem-actionpack | 1:3.2.8-2.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:ruby193-rubygem-actionpack-doc | 1:3.2.8-2.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:ruby193-rubygem-activesupport | 1:3.2.8-3.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:rubygem-actionpack | 1:3.0.13-2.1.el6op · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:rubygem-activesupport | 1:3.0.13-2.el6op · Red Hat:openshift:1::el6 | Package registry (OSV) |
| RubyGems:actionpack | 2.3.15 | Package registry (OSV) |
| RubyGems:actionpack | 3.0.19 | Package registry (OSV) |
| RubyGems:actionpack | 3.1.10 | Package registry (OSV) |
| RubyGems:actionpack | 3.2.11 | Package registry (OSV) |
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Metasploit module ×3
- Exploit-DB entry ×2
- Nuclei detection template ×1
- Proof-of-concept repository on GitHub ×8
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | 8 repositories | 2013-01-10 → 2025-12-11 |
| Exploit-DB entry | remote | 2013-08-12 |
| Exploit-DB entry | remote | 2013-01-10 |
| Metasploit module | auxiliary/scanner/http/rails_xml_yaml_scannerRuby on Rails XML Processor YAML Deserialization Scannerauxiliary | — |
| Metasploit module | exploit/multi/http/rails_secret_deserializationRuby on Rails Known Secret Session Cookie Remote Code Executionexploit | 2013-04-11 |
| Metasploit module | exploit/multi/http/rails_xml_yaml_code_execRuby on Rails XML Processor YAML Deserialization Code Executionexploit | 2013-01-07 |
| Nuclei detection template | Nuclei template infoblox-netmri-rails-cookie-rce | — |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Metasploit-7 d
- First PoC-4 d
- Published
- TodayNov 16, 2026+5054 d
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (13 more)Show less
- lists.apple.com/archives/security-announce/2013/Mar/msg00002.html
- rhn.redhat.com/errata/RHSA-2013-0153.html
- rhn.redhat.com/errata/RHSA-2013-0154.html
- rhn.redhat.com/errata/RHSA-2013-0155.html
- weblog.rubyonrails.org/2013/1/28/Rails-3-0-20-and-2-3-16-have-been-released/
- www.debian.org/security/2013/dsa-2604
- www.fujitsu.com/global/support/software/security/products-f/sw-sv-rcve-ror201301e.html
- www.insinuator.net/2013/01/rails-yaml/
- www.kb.cert.org/vuls/id/380039
- www.kb.cert.org/vuls/id/628463
- community.rapid7.com/community/metasploit/blog/2013/01/09/serialization-mischief-in-ruby-land-cve-2013-0156
- groups.google.com/group/rubyonrails-security/msg/c1432d0f8c70e89d?dmode=source&output=gplain
- puppet.com/security/cve/cve-2013-0156
Vendor advisories and official records. Exploit/PoC links are deliberately left out.