SQL injection in Ruby on Rails - CVE-2013-0333
Published: September 30, 2025 / Updated: September 30, 2025
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
Debian Linux
rails (Debian package)
How to mitigate CVE-2013-0333
rails (Debian package) - update to 2.3.5-1.2+squeeze6
Links to Public Exploits and PoC-codes
- Exploit #11999 - Ruby on Rails - JSON Processor YAML Deserialization Code Execution (Metasploit) (September 30, 2025)
- Exploit #11998 - Ruby on Rails JSON Processor YAML Deserialization Scanner (September 30, 2025)
- Exploit #11997 - Ruby on Rails JSON Processor YAML Deserialization Code Execution (September 30, 2025)