cbcvebase.
CVE-2013-0156
published 2013-01-13

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 3.2.11 does not properly…

PriorityP180high7.5CVSS 2.0
AVNACLAuNCPIPAP
ITWEXPLOITVulnCheck KEVInitial access
Exploited in the wild
EPSS
99.45%
99.9th percentile
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.

Affected

143 ranges· showing 25
VendorProductVersion rangeFixed in
actionpack_projectactionpack>= 0 < 2.3.152.3.15
actionpack_projectactionpack>= 3.0.0 < 3.0.193.0.19
actionpack_projectactionpack>= 3.1.0 < 3.1.103.1.10
actionpack_projectactionpack>= 3.2.0 < 3.2.113.2.11
dan_kubbextlib<= 0.9.15
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib
dan_kubbextlib>= 0 < 0.9.160.9.16
debiandebian_linux
debiandebian_linux
debianrails< rails 2.3.14.1 (bookworm)rails 2.3.14.1 (bookworm)
debianruby-crack< ruby-crack 0.3.2-1 (bookworm)ruby-crack 0.3.2-1 (bookworm)
debianruby-extlib< ruby-extlib 0.9.15-3 (bookworm)ruby-extlib 0.9.15-3 (bookworm)
debianruby-multi-xml

Detection & IOCsextracted from sources · hover to see the quote

ip203.24.188.242
domaininternetresearch.is
domaindgnfd564sdf.com
domainlochjol.com
hasha6a57e6a216dff346a22f51639c4b99c
hash91d31ed8e569c0089fa070ed125e1fc5
hash761f5cfd0a3cddb48c73bc341a4d07a9
otherContent-Type: application/json with X-HTTP-Method-Override: get header
other--- !ruby/hash:ActionController::Routing::RouteSet::NamedRouteCollection
other--- !ruby/hash:ActionDispatch::Routing::RouteSet::NamedRouteCollection
snort
SID 25287
snort
SID 25288
  • Detect CVE-2013-0156 exploitation by inspecting XML POST request bodies for YAML or Symbol type casting directives (e.g., !ruby/hash or !ruby/object tags) passed to a Rails application.
  • The RubyMiner campaign exploiting CVE-2013-0156 used Base64-encoded payloads in the POST body to evade detection; decode and inspect POST bodies to Rails endpoints for embedded shell commands.
  • Detect exploit payloads embedding eval() with base64 unpack in YAML documents sent to Rails, specifically patterns like eval(%[...].unpack(%[m0])[0]).
  • Flag HTTP requests with Content-Type: application/json that also include an X-HTTP-Method-Override header and a body containing !ruby/hash YAML tags, as this is the JSON/YAML deserialization exploit delivery pattern.
  • ·The Metasploit module for CVE-2013-0333 (JSON/YAML deserialization) is closely related to CVE-2013-0156 (XML/YAML deserialization) and shares the same YAML gadget chains; detections should cover both XML and JSON content-type vectors.
  • ·The YAML gadget chain technique used by the Metasploit exploit module requires Ruby 1.9 on the target; Ruby 1.8 targets may require the init_with() method instead and may not be caught by the same signatures.
  • ·The lochjol.com domain was observed in both a 2013 campaign and the 2018 RubyMiner campaign exploiting CVE-2013-0156, but the relationship between the two campaigns (shared attacker vs. coincidence) could not be confirmed.

CVSS provenance

nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
ghsa7.5HIGH
osv7.5HIGH
vulncheck7.5HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.