{"id":"CVE-2017-17917","aliases":["DEBIAN-CVE-2017-17917","EUVD-2017-9060","GHSA-vqpc-h5g8-fhrw"],"status":"disputed","title":"** DISPUTED ** SQL injection vulnerability in the 'where' method in Ruby on Rails 5.1.4 and...","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","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02283,"percentile":0.83269,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-89"],"published":"2017-12-29T16:00:00Z","modified":"2026-10-24T10:30:25Z","exploits":[{"source":"pocgithub","id":"matiasarenhard/rails-cve-2017-17917","title":"matiasarenhard/rails-cve-2017-17917","date":"2024-01-18","url":"https://github.com/matiasarenhard/rails-cve-2017-17917"}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:6.1.7.10+dfsg-1~deb12u1","2:6.1.7.10+dfsg-1~deb12u2","2:6.1.7.3+dfsg-1","2:6.1.7.3+dfsg-10","2:6.1.7.3+dfsg-11","2:6.1.7.3+dfsg-12","2:6.1.7.3+dfsg-13","2:6.1.7.3+dfsg-2","2:6.1.7.3+dfsg-2~deb12u1","2:6.1.7.3+dfsg-3","2:6.1.7.3+dfsg-4","2:6.1.7.3+dfsg-5","2:6.1.7.3+dfsg-6","2:6.1.7.3+dfsg-7","2:6.1.7.3+dfsg-7~exp1","2:6.1.7.3+dfsg-8","2:6.1.7.3+dfsg-9","2:7.2.2.1+dfsg-1","2:7.2.2.1+dfsg-1~exp1","2:7.2.2.1+dfsg-1~exp2","2:7.2.2.1+dfsg-1~exp3","2:7.2.2.1+dfsg-1~exp4","2:7.2.2.1+dfsg-1~exp6","2:7.2.2.1+dfsg-2","2:7.2.2.1+dfsg-3","2:7.2.2.1+dfsg-4","2:7.2.2.1+dfsg-5","2:7.2.2.1+dfsg-6","2:7.2.2.1+dfsg-7","2:7.2.2.2+dfsg-1","2:7.2.2.2+dfsg-2","2:7.2.2.2+dfsg-2~deb13u1","2:7.2.3+dfsg-1","2:7.2.3+dfsg-2","2:7.2.3+dfsg-3","2:7.2.3.1+dfsg-1","2:7.2.3.2+dfsg-1","2:7.2.3.2+dfsg-2"]},{"source":"osv","ecosystem":"Debian:13","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:7.2.2.1+dfsg-7","2:7.2.2.2+dfsg-1","2:7.2.2.2+dfsg-2","2:7.2.2.2+dfsg-2~deb13u1","2:7.2.3+dfsg-1","2:7.2.3+dfsg-2","2:7.2.3+dfsg-3","2:7.2.3.1+dfsg-1","2:7.2.3.2+dfsg-1","2:7.2.3.2+dfsg-2"]},{"source":"osv","ecosystem":"Debian:14","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2:7.2.2.1+dfsg-7","2:7.2.2.2+dfsg-1","2:7.2.2.2+dfsg-2","2:7.2.2.2+dfsg-2~deb13u1","2:7.2.3+dfsg-1","2:7.2.3+dfsg-2","2:7.2.3+dfsg-3","2:7.2.3.1+dfsg-1","2:7.2.3.2+dfsg-1","2:7.2.3.2+dfsg-2"]}],"products":[{"vendor":"rubyonrails","product":"rails"}],"references":[{"url":"https://kay-malwarebenchmark.github.io/blog/ruby-on-rails-arbitrary-sql-injection/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-17917"},{"url":"https://kay-malwarebenchmark.github.io/blog/ruby-on-rails-arbitrary-sql-injection"},{"url":"https://github.com/advisories/GHSA-vqpc-h5g8-fhrw"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-17917","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2017-17917","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","status":"disputed","published":"2017-12-29T16:00:00Z","modified":"2024-08-05T21:06:49.39Z","updated_at":"2026-11-02T14:33:18.556155Z"}],"euvd":[{"id":"EUVD-2017-9060","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","status":"published","published":"2017-12-29T16:00:00Z","modified":"2024-08-05T21:06:49Z","updated_at":"2026-11-03T02:23:08.049216Z"}],"ghsa":[{"id":"GHSA-vqpc-h5g8-fhrw","title":"** DISPUTED ** SQL injection vulnerability in the 'where' method in Ruby on Rails 5.1.4 and...","description":"** DISPUTED ** 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.","status":"published","published":"2022-05-14T03:51:11Z","modified":"2024-03-30T05:01:23Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:55:44.111751Z"}],"nvd":[{"id":"CVE-2017-17917","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","status":"disputed","published":"2017-12-29T16:29:00.263Z","modified":"2026-06-17T01:11:53.56Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:04:11.215487Z"}],"osv":[{"id":"CVE-2017-17917","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","status":"published","published":"2017-12-29T16:29:00.263Z","modified":"2026-10-24T10:30:25.523246737Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:05.486486Z"},{"id":"DEBIAN-CVE-2017-17917","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","status":"published","published":"2017-12-29T16:29:00.263Z","modified":"2026-09-01T20:03:46.957734745Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:29.100767Z"}]}}
