{"answers":{"affected":"8 open source packages ship an affected version, including actionpack. It affects 3 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2013-0156 exists.","fix":"Upgrade actionpack to a fixed version for your release line: 2.3.15, 3.0.19, 3.1.10 or 3.2.11.","what":"CVE-2013-0156 is a high-severity unsafe deserialization vulnerability in Debian Debian Linux, published on 13 Jan 2013. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2013-0156 and fix it if it is affected.\n\nWhat it is: CVE-2013-0156 is a high-severity unsafe deserialization vulnerability in Debian Debian Linux, published on 13 Jan 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2013-0156 exists.\n\nAffected packages and fixed versions:\n- actionpack (RubyGems): affected all versions; fixed in 2.3.15\n- actionpack (RubyGems): affected all versions; fixed in 2.3.15\n- actionpack (RubyGems): affected from 3.0.0; fixed in 3.0.19\n- actionpack (RubyGems): affected from 3.0.0; fixed in 3.0.19\n- actionpack (RubyGems): affected from 3.1.0; fixed in 3.1.10\n- actionpack (RubyGems): affected from 3.1.0; fixed in 3.1.10\n- actionpack (RubyGems): affected from 3.2.0; fixed in 3.2.11\n- actionpack (RubyGems): affected from 3.2.0; fixed in 3.2.11\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2013-0156/ (Markdown: https://insights.sbomify.com/CVE-2013-0156/index.md)","id":"CVE-2013-0156","markdown":"https://insights.sbomify.com/CVE-2013-0156/index.md","name":"CVE-2013-0156","record":{"aliases":["DEBIAN-CVE-2013-0156","DSA-2604-1","GHSA-jmgw-6vjg-jjwg","RHSA-2013:0153","openSUSE-SU-2024:10188-1"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby on Rails","requires_auth":"none","summary":"Remote attackers can execute arbitrary code or cause denial of service via unsafe YAML or Symbol deserialization in Ruby on Rails.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"rails","vendor":"rubyonrails"},{"product":"ruby_on_rails","vendor":"rubyonrails"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"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.","ecosystems":["Red Hat:openshift:1::el6","RubyGems","openSUSE:Tumbleweed"],"exploits":{"exploitdb":2,"first_seen":"2013-01-07","github_poc":8,"max_poc_stars":5,"metasploit":3,"nuclei":0,"refs":[{"date":"2013-01-12T13:37:05Z","kind":"github_poc","ref":"https://github.com/bsodmike/rails-exploit-cve-2013-0156","stars":5,"title":"Bootstrapped Rails 3.2.10 to test the remote code exploit CVE-2013-0156"},{"date":"2013-01-11T02:13:48Z","kind":"github_poc","ref":"https://github.com/heroku/heroku-CVE-2013-0156","stars":1,"title":"Inspect all of your heroku apps to see if they are running a vulnerable version of Rails"},{"date":"2013-01-07","kind":"metasploit","ref":"exploit/multi/http/rails_xml_yaml_code_exec","stars":null,"title":"Ruby on Rails XML Processor YAML Deserialization Code Execution"},{"date":"2013-01-10","kind":"exploitdb","ref":"24019","stars":null,"title":"Ruby on Rails - XML Processor YAML Deserialization Code Execution (Metasploit)"},{"date":"2013-01-10T20:46:08Z","kind":"github_poc","ref":"https://github.com/terracatta/name_reverser","stars":0,"title":"Silly Rails App to demonstrate vuln CVE-2013-0156"},{"date":"2013-01-11T18:21:57Z","kind":"github_poc","ref":"https://github.com/josal/crack-0.1.8-fixed","stars":0,"title":"crack repo from jnunemaker but with version 0.1.8 and rails CVE-2013-0156 vulnerability fixed"},{"date":"2013-04-11","kind":"metasploit","ref":"exploit/multi/http/rails_secret_deserialization","stars":null,"title":"Ruby on Rails Known Secret Session Cookie Remote Code Execution"},{"date":"2013-08-12","kind":"exploitdb","ref":"27527","stars":null,"title":"Ruby on Rails - Known Secret Session Cookie Remote Code Execution (Metasploit)"}],"tier":"weaponised"},"has_fix":true,"headline":"actionpack Improper Input Validation vulnerability","id":"CVE-2013-0156","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"debian:debian_linux","products":["debian:debian_linux","rubyonrails:rails"],"type":"deserialization","year":"2013"},"n_packages":14,"n_references":14,"next":{"headline":"Information disclosure in n/a","id":"CVE-2013-0157"},"packages":[{"ecosystem":"RubyGems","fixed":["2.3.15"],"introduced":["0"],"last_affected":[],"package":"actionpack","purl":null,"source":"GHSA-jmgw-6vjg-jjwg"},{"ecosystem":"RubyGems","fixed":["2.3.15"],"introduced":["0"],"last_affected":[],"package":"actionpack","purl":"pkg:gem/actionpack","source":"GHSA-jmgw-6vjg-jjwg"},{"ecosystem":"RubyGems","fixed":["3.0.19"],"introduced":["3.0.0"],"last_affected":[],"package":"actionpack","purl":null,"source":"GHSA-jmgw-6vjg-jjwg"},{"ecosystem":"RubyGems","fixed":["3.0.19"],"introduced":["3.0.0"],"last_affected":[],"package":"actionpack","purl":"pkg:gem/actionpack","source":"GHSA-jmgw-6vjg-jjwg"},{"ecosystem":"RubyGems","fixed":["3.1.10"],"introduced":["3.1.0"],"last_affected":[],"package":"actionpack","purl":null,"source":"GHSA-jmgw-6vjg-jjwg"},{"ecosystem":"RubyGems","fixed":["3.1.10"],"introduced":["3.1.0"],"last_affected":[],"package":"actionpack","purl":"pkg:gem/actionpack","source":"GHSA-jmgw-6vjg-jjwg"},{"ecosystem":"RubyGems","fixed":["3.2.11"],"introduced":["3.2.0"],"last_affected":[],"package":"actionpack","purl":null,"source":"GHSA-jmgw-6vjg-jjwg"},{"ecosystem":"RubyGems","fixed":["3.2.11"],"introduced":["3.2.0"],"last_affected":[],"package":"actionpack","purl":"pkg:gem/actionpack","source":"GHSA-jmgw-6vjg-jjwg"},{"ecosystem":"Red Hat:openshift:1::el6","fixed":["1:3.2.8-2.el6"],"introduced":["0"],"last_affected":[],"package":"ruby193-rubygem-actionpack","purl":"pkg:rpm/redhat/ruby193-rubygem-actionpack","source":"RHSA-2013:0153"},{"ecosystem":"Red Hat:openshift:1::el6","fixed":["1:3.2.8-2.el6"],"introduced":["0"],"last_affected":[],"package":"ruby193-rubygem-actionpack-doc","purl":"pkg:rpm/redhat/ruby193-rubygem-actionpack-doc","source":"RHSA-2013:0153"},{"ecosystem":"Red Hat:openshift:1::el6","fixed":["1:3.2.8-3.el6"],"introduced":["0"],"last_affected":[],"package":"ruby193-rubygem-activesupport","purl":"pkg:rpm/redhat/ruby193-rubygem-activesupport","source":"RHSA-2013:0153"},{"ecosystem":"Red Hat:openshift:1::el6","fixed":["1:3.0.13-2.1.el6op"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionpack","purl":"pkg:rpm/redhat/rubygem-actionpack","source":"RHSA-2013:0153"},{"ecosystem":"Red Hat:openshift:1::el6","fixed":["1:3.0.13-2.el6op"],"introduced":["0"],"last_affected":[],"package":"rubygem-activesupport","purl":"pkg:rpm/redhat/rubygem-activesupport","source":"RHSA-2013:0153"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.9.16-7.4"],"introduced":["0"],"last_affected":[],"package":"rubygem-extlib","purl":"pkg:rpm/opensuse/rubygem-extlib\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:10188-1"}],"prev":{"headline":"Active Record allows bypassing of database-query restrictions","id":"CVE-2013-0155"},"products":["n/a"],"published":"2013-01-13","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code or cause denial of service via unsafe YAML or Symbol deserialization in Ruby on Rails.","url":"https://insights.sbomify.com/CVE-2013-0156/"}