CVE-2013-0156 Improper Input Validation
No CVSS score yet. EPSS 99% estimated probability of exploitation activity in the next 30 days. Fixed in actionpack 2.3.15, 3.0.19, 3.1.10.
On this page
- EPSS
- 99% (unchanged from 99% a week ago; 99.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
- CWE
- CWE-20 Improper Input Validation
- OWASP Top 10
- A05:2025 Injection
- Published
- Modified
- NVD analysis
- Analyzed, since modified
- Record from
- the NVD, synced
Fix and patched versions
actionpack(RubyGems): fixed in 2.3.15, 3.0.19, 3.1.10, 3.2.11- Debian, Red Hat, openSUSE: fixed package versions per release
- Vendor advisory: http://weblog.rubyonrails.org/2013/1/28/Rails-3-0-20-and-2-3-16-have-been-released/
Ask an AI about this CVE
Show the prompt
Explain CVE-2013-0156 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2013-0156?via=ask-ai-copy and https://cve.bz/cve/CVE-2013-0156?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2013-0156 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| rubyonrails:rails | from 3.2.0 before 3.2.11 |
| rubyonrails:ruby_on_rails | before 2.3.15 |
| rubyonrails:ruby_on_rails | from 3.0.0 before 3.0.19 |
| rubyonrails:ruby_on_rails | from 3.1.0 before 3.1.10 |
| debian:debian_linux | 6.0 |
| debian:debian_linux | 7.0 |
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-jmgw-6vjg-jjwg | RubyGems | actionpack | <2.3.15 | 2.3.15 |
| GHSA-jmgw-6vjg-jjwg | RubyGems | actionpack | >=3.0.0 <3.0.19 | 3.0.19 |
| GHSA-jmgw-6vjg-jjwg | RubyGems | actionpack | >=3.1.0 <3.1.10 | 3.1.10 |
| GHSA-jmgw-6vjg-jjwg | RubyGems | actionpack | >=3.2.0 <3.2.11 | 3.2.11 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 6.0 | rails | 2.3.5-1.2+squeeze4.1 | DSA-2604-1 |
| Debian | 12, 13, 14 | rails | 2.3.14.1 | DEBIAN-CVE-2013-0156 |
| Red Hat | openshift:1::el6 | ruby193-rubygem-actionpack, ruby193-rubygem-actionpack-doc | 1:3.2.8-2.el6 | RHSA-2013:0153 |
| Red Hat | openshift:1::el6 | ruby193-rubygem-activesupport | 1:3.2.8-3.el6 | RHSA-2013:0153 |
| Red Hat | openshift:1::el6 | rubygem-actionpack | 1:3.0.13-2.1.el6op | RHSA-2013:0153 |
| Red Hat | openshift:1::el6 | rubygem-activesupport | 1:3.0.13-2.el6op | RHSA-2013:0153 |
| openSUSE | Tumbleweed | rubygem-extlib | 0.9.16-7.4 | openSUSE-SU-2024:10188-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · openSUSE.
Red Hat
Red Hat rates this Critical.
For details of affected products and workarounds see https://access.redhat.com/knowledge/node/290903
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms for RHEL 6 | rubygem-actionpack-1:3.0.10-11.el6cf | Fixed 2013-01-10 | RHSA-2013:0155 |
| CloudForms for RHEL 6 | rubygem-activerecord-1:3.0.10-8.el6cf | Fixed 2013-01-10 | RHSA-2013:0155 |
| CloudForms for RHEL 6 | rubygem-activesupport-1:3.0.10-5.el6cf | Fixed 2013-01-10 | RHSA-2013:0155 |
| Red Hat Subscription Asset Manager 1.1 | rubygem-actionpack-1:3.0.10-11.el6cf | Fixed 2013-01-10 | RHSA-2013:0154 |
| Red Hat Subscription Asset Manager 1.1 | rubygem-activerecord-1:3.0.10-8.el6cf | Fixed 2013-01-10 | RHSA-2013:0154 |
| Red Hat Subscription Asset Manager 1.1 | rubygem-activesupport-1:3.0.10-5.el6cf | Fixed 2013-01-10 | RHSA-2013:0154 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-actionpack-1:3.2.8-2.el6 | Fixed 2013-01-10 | RHSA-2013:0153 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-activesupport-1:3.0.13-2.el6op | Fixed 2013-01-10 | RHSA-2013:0153 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-activesupport-1:3.2.8-3.el6 | Fixed 2013-01-10 | RHSA-2013:0153 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-actionpack-1:3.0.13-2.1.el6op | Fixed 2013-01-10 | RHSA-2013:0153 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-activesupport-1:3.0.13-2.el6op | Fixed 2013-01-10 | RHSA-2013:0153 |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2013-0156.
Public exploits
- Exploit-DB Ruby on Rails - Known Secret Session Cookie Remote Code Execution (Metasploit)
- Exploit-DB Ruby on Rails - XML Processor YAML Deserialization Code Execution (Metasploit)
- Metasploit Ruby on Rails Known Secret Session Cookie Remote Code Execution
- Metasploit Ruby on Rails XML Processor YAML Deserialization Code Execution
- Metasploit Ruby on Rails XML Processor YAML Deserialization Scanner
GitHub PoC
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.
- 7s26simon/CVE-2013-0156 Harbor Check: matches CVE 0 stars, Ruby, created
Modified ruby script for RCE
Attack patterns (CAPEC)
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).
References
- http://weblog.rubyonrails.org/2013/1/28/Rails-3-0-20-and-2-3-16-have-been-released/
- http://ics-cert.us-cert.gov/advisories/ICSA-13-036-01A
- http://lists.apple.com/archives/security-announce/2013/Mar/msg00002.html
- http://rhn.redhat.com/errata/RHSA-2013-0153.html
- http://rhn.redhat.com/errata/RHSA-2013-0154.html
- http://rhn.redhat.com/errata/RHSA-2013-0155.html
- http://www.debian.org/security/2013/dsa-2604
- http://www.fujitsu.com/global/support/software/security/products-f/sw-sv-rcve-ror201301e.html
- http://www.insinuator.net/2013/01/rails-yaml/
- http://www.kb.cert.org/vuls/id/380039
- http://www.kb.cert.org/vuls/id/628463
- https://community.rapid7.com/community/metasploit/blog/2013/01/09/serialization-mischief-in-ruby-land-cve-2013-0156
- https://groups.google.com/group/rubyonrails-security/msg/c1432d0f8c70e89d?dmode=source&output=gplain
- https://puppet.com/security/cve/cve-2013-0156