Description
SQL injection vulnerability in the 'where' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute arbitrary SQL commands via the 'id' parameter. NOTE: The vendor disputes this issue because the documentation states that this method is not intended for use with untrusted input
Exploits (1)
nomisec
WORKING POC
1 stars
by matiasarenhard · poc
https://github.com/matiasarenhard/rails-cve-2017-17917
References (1)
Core 1
Core References
Exploit, Third Party Advisory x_refsource_misc
https://kay-malwarebenchmark.github.io/blog/ruby-on-rails-arbitrary-sql-injection/
Scores
CVSS v3
8.1
EPSS
0.0178
EPSS Percentile
82.9%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
total
Lab Environment
Details
CWE
CWE-89
Status
published
Products (1)
rubyonrails/rails
< 5.1.4
Published
Dec 29, 2017
Tracked Since
Feb 18, 2026