SQL injection in Ruby on Rails - CVE-2013-0333

 

SQL injection in Ruby on Rails - CVE-2013-0333

Published: September 30, 2025 / Updated: September 30, 2025


Vulnerability identifier: #VU116187
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-0333
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary SQL queries in database.

The vulnerability exists due to lib/active_support/json/backends/yaml.rb in Ruby on Rails does not properly convert JSON data to YAML data for processing by a YAML parser. A remote attacker can execute arbitrary code, conduct SQL injection attacks, or bypass authentication via crafted data that triggers unsafe decoding.


Affected software

Ruby on Rails
Debian Linux
rails (Debian package)

How to mitigate CVE-2013-0333

Install updates from vendor's website.

Ruby on Rails - addressed in versions 2.3.16, 3.0.20
rails (Debian package) - update to 2.3.5-1.2+squeeze6

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins