Input validation error in Ruby on Rails - CVE-2013-0156

 

Input validation error in Ruby on Rails - CVE-2013-0156

Published: January 14, 2013 / Updated: November 15, 2024


Vulnerability identifier: #VU31841
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2013-0156
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

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 software

Ruby on Rails
ruby-activesupport (Alpine package)

How to mitigate CVE-2013-0156

Install update from vendor's website.

Ruby on Rails - update to 3.1.10
ruby-activesupport (Alpine package) - update to 2.3.15-r0

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins